hgext/narrow/narrowcommands.py
changeset 50499 7a1a0a236187
parent 50484 17a822d7943e
child 50504 862e3a13da44
--- a/hgext/narrow/narrowcommands.py	Mon May 15 22:09:43 2023 +0200
+++ b/hgext/narrow/narrowcommands.py	Mon May 15 22:10:04 2023 +0200
@@ -31,7 +31,6 @@
     repoview,
     requirements,
     sparse,
-    store,
     util,
     wireprototypes,
 )
@@ -292,11 +291,11 @@
         for entry in repo.store.datafiles():
             if not entry.is_revlog:
                 continue
-            if entry.revlog_type == store.FILEFLAGS_FILELOG:
+            if entry.is_filelog:
                 if not newmatch(entry.target_id):
                     for file_ in entry.files():
                         todelete.append(file_.unencoded_path)
-            elif entry.revlog_type == store.FILEFLAGS_MANIFESTLOG:
+            elif entry.is_manifestlog:
                 dir = entry.target_id
                 dirs = sorted(pathutil.dirs({dir})) + [dir]
                 include = True