Mercurial > hg-stable
changeset 38663:93d9690ff2b0
revlog: move comment about commonancestorsheads where it's used
Differential Revision: https://phab.mercurial-scm.org/D3928
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 11 Jul 2018 16:27:40 -0700 |
parents | ad2aa4e85047 |
children | 160da69ba1bf |
files | mercurial/revlog.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Wed Jul 11 13:02:06 2018 -0700 +++ b/mercurial/revlog.py Wed Jul 11 16:27:40 2018 -0700 @@ -1648,7 +1648,10 @@ def descendant(self, start, end): """True if revision 'end' is an descendant of revision 'start' - A revision is considered as a descendant of itself.""" + A revision is considered as a descendant of itself. + + The implementation of this is trivial but the use of + commonancestorsheads is not.""" if start == nullrev: return True elif start == end: @@ -1670,10 +1673,7 @@ return ancs def isancestor(self, a, b): - """return True if node a is an ancestor of node b - - The implementation of this is trivial but the use of - commonancestorsheads is not.""" + """return True if node a is an ancestor of node b""" a, b = self.rev(a), self.rev(b) return self.descendant(a, b)