diff -r a2be6f0f58fb -r d3f1b7ee5e70 mercurial/archival.py --- 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: