mercurial/revlog.py
changeset 40298 9cadb0f5f227
parent 40267 9d5ddf55415b
child 40325 b0fbd1792e2d
--- a/mercurial/revlog.py	Sun Oct 14 14:10:38 2018 +0000
+++ b/mercurial/revlog.py	Thu Sep 27 16:55:44 2018 +0200
@@ -763,6 +763,10 @@
         for r in revs:
             checkrev(r)
         # and we're sure ancestors aren't filtered as well
+        if util.safehasattr(parsers, 'rustlazyancestors'):
+            return ancestor.rustlazyancestors(
+                self.index, revs,
+                stoprev=stoprev, inclusive=inclusive)
         return ancestor.lazyancestors(self._uncheckedparentrevs, revs,
                                       stoprev=stoprev, inclusive=inclusive)