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):