hgext/narrow/narrowcommands.py
changeset 43523 c21aca51b392
parent 43506 9f70512ae2cf
child 45372 77b8588dd84e
--- a/hgext/narrow/narrowcommands.py	Wed Oct 23 12:15:42 2019 -0700
+++ b/hgext/narrow/narrowcommands.py	Wed Nov 06 14:13:19 2019 +0100
@@ -22,6 +22,7 @@
     hg,
     narrowspec,
     node,
+    pathutil,
     pycompat,
     registrar,
     repair,
@@ -277,7 +278,7 @@
                     todelete.append(f)
             elif f.startswith(b'meta/'):
                 dir = f[5:-13]
-                dirs = sorted(util.dirs({dir})) + [dir]
+                dirs = sorted(pathutil.dirs({dir})) + [dir]
                 include = True
                 for d in dirs:
                     visit = newmatch.visitdir(d)