changeset 50499:7a1a0a236187

store: use the new boolean property in `narrow`
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 15 May 2023 22:10:04 +0200
parents 1b776f25302f
children 0bd214f83216
files hgext/narrow/narrowcommands.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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