Skip to content
Browse files

Provide `Repository.parent_revs()` and `Repository.children_revs()` f…

…or `ticket-1492-svgweb`

With this change and together with rblank's graph view implementation
we get a working git commit graph view.

(See http://trac.edgewall.org/ticket/1492 for discussion)
  • Loading branch information...
1 parent 672da40 commit 7c514e5ac96998a4a0d88e6e1b514556c40cd730 @hvr committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 tracext/git/git_fs.py
View
6 tracext/git/git_fs.py
@@ -440,6 +440,12 @@ def next_rev(self, rev, path=''):
def previous_rev(self, rev, path=''):
return self.git.hist_prev_revision(rev)
+ def parent_revs(self, rev):
+ return self.git.parents(rev)
+
+ def child_revs(self, rev):
+ return self.git.children(rev)
+
def rev_older_than(self, rev1, rev2):
rc = self.git.rev_is_anchestor_of(rev1, rev2)
return rc

0 comments on commit 7c514e5

Please sign in to comment.
Something went wrong with that request. Please try again.