diff -r d33611280add -r 9cadb0f5f227 mercurial/revlog.py --- 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)