diff mercurial/subrepo.py @ 28017: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
parents 594bdc380aa2
children a88959ae5938
line wrap: on
line diff
--- a/mercurial/subrepo.py	Wed Feb 03 18:59:35 2016 +0000
+++ b/mercurial/subrepo.py	Fri Feb 05 21:09:32 2016 -0800
@@ -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