Patchwork D3928: revlog: move comment about commonancestorsheads where it's used

login
register
mail settings
Submitter phabricator
Date July 12, 2018, 1:11 p.m.
Message ID <547ccad74ebe6458aaeec7dd10af680f@localhost.localdomain>
Download mbox | patch
Permalink /patch/32808/
State Not Applicable
Headers show

Comments

phabricator - July 12, 2018, 1:11 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG93d9690ff2b0: revlog: move comment about commonancestorsheads where it&#039;s used (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3928?vs=9558&id=9564

REVISION DETAIL
  https://phab.mercurial-scm.org/D3928

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




To: martinvonz, indygreg, #hg-reviewers, lothiraldan
Cc: mercurial-devel

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -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)