Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#2762 closed defect (worksforme)

trac-admin fails when pointed to invalid svn root

Reported by: simo.salminen Owned by: daniel
Priority: normal Milestone:
Component: admin/console Version: 0.9.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Running trac-admin initenv with invalid svn root fails. However, the actual traceback is misleading:

Failed to initialize environment. /data/svn/testrepo does not appear to be a Sub
version repository.
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 609, in do
_initenv
    repos = self.__env.get_repository()
  File "/usr/lib/python2.3/site-packages/trac/env.py", line 162, in get_reposito
ry
    repos = SubversionRepository(repos_dir, authz, self.log)
  File "/usr/lib/python2.3/site-packages/trac/versioncontrol/svn_fs.py", line 19
2, in __init__
    raise TracError, \
TracError: /data/svn/testrepo does not appear to be a Subversion repository.
Exception exceptions.AttributeError: "'SubversionRepository' object has no attri
bute 'log'" in <bound method SubversionRepository.__del__ of <trac.versioncontro
l.svn_fs.SubversionRepository object at 0x4062c38c>> ignored

Attachments (0)

Change History (3)

comment:1 by anonymous, 19 years ago

Summary: trac-admin fails when pointed to invalid svn root buttrac-admin fails when pointed to invalid svn root

comment:2 by Emmanuel Blot, 19 years ago

Not sure what you were expecting:

Failed to initialize environment. /data/svn/testrepo does not appear to be a Subversion repository is misleading ?

comment:3 by Christian Boos, 19 years ago

Resolution: worksforme
Status: newclosed

As Emmanuel said, the message TracError: /data/svn/testrepo does not appear to be a Subversion repository. seems explicit enough, no?

The spurious exception that you see at the end was already fixed for milestone:0.9.4.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel 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.