Edgewall Software
Modify

Ticket #2762 (closed defect: worksforme)

Opened 6 years ago

Last modified 6 years ago

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:
Release Notes:
API 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

Change History

comment:1 Changed 6 years ago by anonymous

  • Summary changed from trac-admin fails when pointed to invalid svn root but to trac-admin fails when pointed to invalid svn root

comment:2 Changed 6 years ago by eblot

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 Changed 6 years ago by cboos

  • Resolution set to worksforme
  • Status changed from new to closed

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.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from daniel. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.