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 , 19 years ago
Summary: | trac-admin fails when pointed to invalid svn root but → trac-admin fails when pointed to invalid svn root |
---|
comment:2 by , 19 years ago
comment:3 by , 19 years ago
Resolution: | → worksforme |
---|---|
Status: | new → 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.
Note:
See TracTickets
for help on using tickets.
Not sure what you were expecting:
Failed to initialize environment. /data/svn/testrepo does not appear to be a Subversion repository is misleading ?