changeset 38666 | a06b2b032557 |
parent 38665 | 6afa928033bd |
child 38668 | 21846c94e605 |
--- a/mercurial/revlog.py Wed Jul 11 16:37:30 2018 -0700 +++ b/mercurial/revlog.py Wed Jul 11 16:29:23 2018 -0700 @@ -1679,6 +1679,12 @@ A revision is considered an ancestor of itself.""" a, b = self.rev(a), self.rev(b) + return self.isancestorrev(a, b) + + def isancestorrev(self, a, b): + """return True if revision a is an ancestor of revision b + + A revision is considered an ancestor of itself.""" return self.isdescendantrev(b, a) def ancestor(self, a, b):