store: use the boolean property in `repair_issue6528`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 15 May 2023 22:10:33 +0200
changeset 50500 0bd214f83216
parent 50499 7a1a0a236187
child 50501 4242acf5c399
store: use the boolean property in `repair_issue6528`
mercurial/revlogutils/rewrite.py
--- a/mercurial/revlogutils/rewrite.py	Mon May 15 22:10:04 2023 +0200
+++ b/mercurial/revlogutils/rewrite.py	Mon May 15 22:10:33 2023 +0200
@@ -808,8 +808,6 @@
 def repair_issue6528(
     ui, repo, dry_run=False, to_report=None, from_report=None, paranoid=False
 ):
-    from .. import store  # avoid cycle
-
     @contextlib.contextmanager
     def context():
         if dry_run or to_report:  # No need for locking
@@ -827,9 +825,7 @@
         files = list(
             entry
             for entry in repo.store.datafiles()
-            if (
-                entry.is_revlog and entry.revlog_type == store.FILEFLAGS_FILELOG
-            )
+            if entry.is_revlog and entry.is_filelog
         )
 
         progress = ui.makeprogress(