mercurial/testing/storage.py
changeset 40047 8e398628a3f2
parent 40003 ad8389ecd3f5
child 40050 8e136940c0e6
--- a/mercurial/testing/storage.py	Thu Oct 04 01:22:25 2018 +0200
+++ b/mercurial/testing/storage.py	Wed Oct 03 12:57:01 2018 -0700
@@ -17,7 +17,7 @@
 from .. import (
     error,
     mdiff,
-    revlog,
+    repository,
 )
 from ..utils import (
     storageutil,
@@ -874,7 +874,7 @@
         with self._maketransactionfn() as tr:
             node0 = f.add(b'foo', None, tr, 0, nullid, nullid)
             f.addrevision(stored1, tr, 1, node0, nullid,
-                          flags=revlog.REVIDX_ISCENSORED)
+                          flags=repository.REVISION_FLAG_CENSORED)
 
         self.assertTrue(f.iscensored(1))
 
@@ -914,7 +914,7 @@
         f = self._makefilefn()
         with self._maketransactionfn() as tr:
             for i in range(15, 0, -1):
-                if (1 << i) & ~revlog.REVIDX_KNOWN_FLAGS:
+                if (1 << i) & ~repository.REVISION_FLAGS_KNOWN:
                     flags = 1 << i
                     break