Patchwork D5551: rust-cpython: using MissingAncestors from Python code

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2019, 12:45 p.m.
Message ID <2097c164f6d8fe6b6acdf225e4285be2@localhost.localdomain>
Download mbox | patch
Permalink /patch/37795/
State Not Applicable
Headers show

Comments

phabricator - Jan. 16, 2019, 12:45 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa89b20a49c13: rust-cpython: using MissingAncestors from Python code (authored by gracinet, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5551?vs=13219&id=13256

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

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -893,6 +893,8 @@ 
         if common is None:
             common = [nullrev]
 
+        if rustext is not None:
+            return rustext.ancestor.MissingAncestors(self.index, common)
         return ancestor.incrementalmissingancestors(self.parentrevs, common)
 
     def findmissingrevs(self, common=None, heads=None):