--- a/mercurial/testing/revlog.py Sun Oct 29 23:54:05 2023 +0100
+++ b/mercurial/testing/revlog.py Sun Oct 29 12:18:03 2023 +0100
@@ -30,9 +30,11 @@
cparsers = None
try:
- from ..rustext.revlog import MixedIndex # pytype: disable=import-error
+ from ..rustext.revlog import ( # pytype: disable=import-error
+ Index as RustIndex,
+ )
except ImportError:
- MixedIndex = None
+ RustIndex = None
@unittest.skipIf(
@@ -47,7 +49,7 @@
@unittest.skipIf(
- MixedIndex is None,
+ RustIndex is None,
'The Rust index is not available. It is needed for this test.',
)
class RustRevlogBasedTestBase(unittest.TestCase):
@@ -57,4 +59,4 @@
# not inheriting RevlogBasedTestCase to avoid having a
# `parseindex` method that would be shadowed by future subclasses
# this duplication will soon be removed
- return MixedIndex(data, REVLOGV1)
+ return RustIndex(data, REVLOGV1)