Timeline out of order when viewing SVK repository
|Reported by:||Owned by:||Christian Boos|
My SVK repository has two projects mirrored (call them A and B). I loaded B second, hence it's revision numbers are higher than those from project A. When I initially viewed the timeline for the last 30 days, none of A's changes appeared even though I knew that changes had occurred. Viewing 1000 days worth of changes gave me the full timeline. I think perhaps the changeset timeline code assumes that the dates on the revisions will be in the same order as the revision numbers, which isn't always true when using SVK.
This change seems to fix things, at the expense of some speed:
Index: changeset.py =================================================================== --- changeset.py (revision 2530) +++ changeset.py (working copy) @@ -114,7 +114,8 @@ class ChangesetModule(Component): chgset = repos.get_changeset(rev) if chgset.date < start: - return + rev = repos.previous_rev(rev) + continue if chgset.date < stop: message = chgset.message or '--' if format == 'rss':