diff mercurial/subrepo.py @ 28688:d3f1b7ee5e70

match: rename "narrowmatcher" to "subdirmatcher" (API) I keep mistaking "narrowmatcher" for narrowhg's narrowmatcher. "subdirmatcher" seems more to the point anyway.
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 05 Feb 2016 21:09:32 -0800 (2016-02-06)
parents 594bdc380aa2
children 90ba0472d1bc a88959ae5938
line wrap: on
line diff
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -774,7 +774,7 @@
         ctx = self._repo[rev]
         for subpath in ctx.substate:
             s = subrepo(ctx, subpath, True)
-            submatch = matchmod.narrowmatcher(subpath, match)
+            submatch = matchmod.subdirmatcher(subpath, match)
             total += s.archive(archiver, prefix + self._path + '/', submatch)
         return total