revlog: move comment about commonancestorsheads where it's used
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 11 Jul 2018 16:27:40 -0700
changeset 38663 93d9690ff2b0
parent 38662 ad2aa4e85047
child 38664 160da69ba1bf
revlog: move comment about commonancestorsheads where it's used Differential Revision: https://phab.mercurial-scm.org/D3928
mercurial/revlog.py
--- 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)