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

login
register
mail settings
Submitter phabricator
Date Jan. 15, 2019, 2:15 a.m.
Message ID <361396325e55807f0c20a92e1c70db18@localhost.localdomain>
Download mbox | patch
Permalink /patch/37747/
State Not Applicable
Headers show

Comments

phabricator - Jan. 15, 2019, 2:15 a.m.
gracinet updated this revision to Diff 13219.
gracinet edited the summary of this revision.

REPOSITORY
  rHG Mercurial

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

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