Opened 14 years ago
Last modified 13 years ago
#8303 new defect
AttributeError: 'NoneType' object has no attribute 'get_youngest_rev'
Reported by: | Quique | Owned by: | Emmanuel Blot |
---|---|---|---|
Priority: | normal | Component: | RevtreePlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description (last modified by )
I have installed the Trac 0.12 version. And when i try to see the RevtreePlugin the following error appears:
AttributeError: 'NoneType' object has no attribute 'get_youngest_rev'
Attachments (0)
Change History (4)
comment:1 Changed 14 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 14 years ago by
comment:3 Changed 14 years ago by
Severity: | major → blocker |
---|
I have the same problem, here is the backtrace:
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 511, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "build/bdist.linux-x86_64/egg/revtree/web_ui.py", line 246, in process_request return self._process_revtree(req) File "build/bdist.linux-x86_64/egg/revtree/web_ui.py", line 295, in _process_revtree youngest = int(tracrepos.get_youngest_rev())
and here the relevant code snippet
292 def _process_revtree(self, req): 293 """Handle revtree generation requests""" 294 tracrepos = self.env.get_repository() 295 youngest = int(tracrepos.get_youngest_rev())
It looks like self.env.get_repository() does not return anything, probably as the original reporter said because multiple repositories are supported. This is from a 0.12.2 trac with the svn checkout of the 0.12 branch of the revtree plugin.
comment:4 Changed 13 years ago by
self.env.get_repository() does report repository_dir from trac.ini This variable is not set on a default installation, setting the value with full path prevents return of NULL when using self.env.get_repository() On the other hand, setting this value will break multi-repo support
I think that the problem is because the Trac 0.12 have several SVN repositories.