# HG changeset patch # User Pierre-Yves David # Date 1684181404 -7200 # Node ID 7a1a0a2361875be0aa27d53d62145e8689cd474f # Parent 1b776f25302f9952e87cadaf7caecbabe7be5954 store: use the new boolean property in `narrow` diff -r 1b776f25302f -r 7a1a0a236187 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