[Trac-tickets] [The Trac Project] #1826: timeline bug when handling
a subset of a repository
The Trac Project
noreply at edgewall.com
Sat Jul 23 12:05:33 CDT 2005
#1826: timeline bug when handling a subset of a repository
----------------------+-----------------------------------------------------
Id: 1826 | Status: new
Component: timeline | Modified: Sat Jul 23 12:05:32 2005
Severity: normal | Milestone:
Priority: normal | Version: devel
Owner: jonas | Reporter: ndelon at idealx.com
----------------------+-----------------------------------------------------
When trac is handling a subset of a svn repository, only the last
changeset is shown in the timeline.
It seems to be caused by a bad list index check in the previous_rev method
of the "SubversionRepository" class. The following patch fixed the problem
for me.
{{{
Index: trac/versioncontrol/svn_fs.py
===================================================================
--- trac/versioncontrol/svn_fs.py (revision 2015)
+++ trac/versioncontrol/svn_fs.py (working copy)
@@ -233,7 +233,7 @@
if self.scope == '/':
return rev - 1
idx = self.history.index(rev)
- if idx > 0:
+ if idx + 1 < len(self.history):
return self.history[idx + 1]
return None
}}}
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/1826>
The Trac Project <>
More information about the Trac-Tickets
mailing list