store: use the new boolean property in `narrow`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 15 May 2023 22:10:04 +0200
changeset 50499 7a1a0a236187
parent 50498 1b776f25302f
child 50500 0bd214f83216
store: use the new boolean property in `narrow`
hgext/narrow/narrowcommands.py
--- 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