hgext/narrow/narrowbundle2.py
changeset 36209 2ad527f7d27a
parent 36208 c407ccd06abd
child 36348 f3b9377d6aea
--- a/hgext/narrow/narrowbundle2.py	Tue Feb 13 13:16:06 2018 -0800
+++ b/hgext/narrow/narrowbundle2.py	Tue Feb 13 13:50:24 2018 -0800
@@ -152,7 +152,7 @@
             else:
                 # For a root node, we need to include the node if any
                 # files in the node match the narrowspec.
-                needed = any(match(f) for f in curmf)
+                needed = any(curmf.walk(match))
 
         if needed:
             for head in ellipsisheads[rev]: