Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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
hvr committed Nov 6, 2010
1 parent 672da40 commit 7c514e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tracext/git/git_fs.py
Expand Up @@ -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
Expand Down

0 comments on commit 7c514e5

Please sign in to comment.