diff mercurial/testing/revlog.py @ 51251:f94c10334bcb

rust-index: renamed `MixedIndex` as `Index` It is simply not mixed any more, hence the name had become a future source of confusion.
author Georges Racinet on incendie.racinet.fr <georges@racinet.fr>
date Sun, 29 Oct 2023 12:18:03 +0100
parents 96e05f1a99bd
children f4733654f144
line wrap: on
line diff
--- 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)