hgext/narrow/narrowcommands.py
changeset 50472 9fdc28e21b68
parent 50471 521fec115dad
child 50484 17a822d7943e
--- a/hgext/narrow/narrowcommands.py	Mon May 15 08:56:23 2023 +0200
+++ b/hgext/narrow/narrowcommands.py	Mon May 15 08:56:40 2023 +0200
@@ -293,7 +293,8 @@
             if f.startswith(b'data/'):
                 file = f[5:-2]
                 if not newmatch(file):
-                    todelete.append(f)
+                    for file_ in entry.files():
+                        todelete.append(file_.unencoded_path)
             elif f.startswith(b'meta/'):
                 dir = f[5:-13]
                 dirs = sorted(pathutil.dirs({dir})) + [dir]
@@ -306,7 +307,8 @@
                     if visit == b'all':
                         break
                 if not include:
-                    todelete.append(f)
+                    for file_ in entry.files():
+                        todelete.append(file_.unencoded_path)
 
         repo.destroying()