Patchwork D3930: revlog: make isdescendantrev(a, b) check if a < b

login
register
mail settings
Submitter phabricator
Date July 12, 2018, 1:11 p.m.
Message ID <93c25631ebcf29310dd5eed53bb55b86@localhost.localdomain>
Download mbox | patch
Permalink /patch/32809/
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 rHG6afa928033bd: revlog: make isdescendantrev(a, b) check if a &lt; b (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3930?vs=9560&id=9566

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

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -1656,6 +1656,8 @@ 
             return True
         elif a == b:
             return True
+        elif a < b:
+            return False
         return b in self._commonancestorsheads(a, b)
 
     def commonancestorsheads(self, a, b):