D3930: revlog: make isdescendantrev(a, b) check if a < b
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Jul 12 09:11:56 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6afa928033bd: revlog: make isdescendantrev(a, b) check if a < 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
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):
To: martinvonz, indygreg, #hg-reviewers, lothiraldan
Cc: lothiraldan, mercurial-devel
More information about the Mercurial-devel
mailing list