--- a/mercurial/revlog.py Wed Jan 13 18:33:48 2021 +0100
+++ b/mercurial/revlog.py Wed Jan 13 23:07:41 2021 +0100
@@ -161,6 +161,16 @@
rl.revision(node)
+# True if a fast implementation for persistent-nodemap is available
+#
+# We also consider we have a "fast" implementation in "pure" python because
+# people using pure don't really have performance consideration (and a
+# wheelbarrow of other slowness source)
+HAS_FAST_PERSISTENT_NODEMAP = rustrevlog is not None or util.safehasattr(
+ parsers, 'BaseIndexObject'
+)
+
+
@attr.s(slots=True, frozen=True)
class _revisioninfo(object):
"""Information about a revision that allows building its fulltext