mercurial/archival.py
changeset 28017 d3f1b7ee5e70
parent 26587 56b2bcea2529
child 28861 86db5cb55d46
--- a/mercurial/archival.py	Wed Feb 03 18:59:35 2016 +0000
+++ b/mercurial/archival.py	Fri Feb 05 21:09:32 2016 -0800
@@ -331,7 +331,7 @@
     if subrepos:
         for subpath in sorted(ctx.substate):
             sub = ctx.workingsub(subpath)
-            submatch = matchmod.narrowmatcher(subpath, matchfn)
+            submatch = matchmod.subdirmatcher(subpath, matchfn)
             total += sub.archive(archiver, prefix, submatch)
 
     if total == 0: