Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#3055 closed enhancement (fixed)

Make trac-admin a bit more userfriendly during initenv

Reported by: asmodai@… Owned by: Christian Boos
Priority: normal Milestone: 0.10
Component: admin/console Version: devel
Severity: minor Keywords: initenv
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

trac-admin currently generates a traceback when the directory passed to trac-admin's initenv is exists.

The attached patch solves this by checking if the directory exists and skipping the creation call. The patch furthermore checks if the passed directory already has files in them, checks these to see if it might be a Subversion repository (this happens from time to time according to alect) and reporting that we do not install into non-empty directories.

All cases tested.

Attachments (1)

trac-dir.diff (1.6 KB ) - added by asmodai@… 19 years ago.
See ticket description

Download all attachments as: .zip

Change History (3)

by asmodai@…, 19 years ago

Attachment: trac-dir.diff added

See ticket description

comment:1 by Christian Boos, 19 years ago

Keywords: initenv added
Milestone: 0.9.60.10
Owner: changed from daniel to Christian Boos

We can do something like this for 0.10. I'll skip the Subversion parts, as we don't want to be too much tied to a specific VersioningSystemBackend. Simply aborting on non-empty directories will also ensure such a mistake can't be made.

comment:2 by Christian Boos, 19 years ago

Resolution: fixed
Status: newclosed

Something similar to your suggestion has been done in r3213.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.