comparison 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
comparison
equal deleted inserted replaced
28016:a2be6f0f58fb 28017:d3f1b7ee5e70
772 total = abstractsubrepo.archive(self, archiver, prefix, match) 772 total = abstractsubrepo.archive(self, archiver, prefix, match)
773 rev = self._state[1] 773 rev = self._state[1]
774 ctx = self._repo[rev] 774 ctx = self._repo[rev]
775 for subpath in ctx.substate: 775 for subpath in ctx.substate:
776 s = subrepo(ctx, subpath, True) 776 s = subrepo(ctx, subpath, True)
777 submatch = matchmod.narrowmatcher(subpath, match) 777 submatch = matchmod.subdirmatcher(subpath, match)
778 total += s.archive(archiver, prefix + self._path + '/', submatch) 778 total += s.archive(archiver, prefix + self._path + '/', submatch)
779 return total 779 return total
780 780
781 @annotatesubrepoerror 781 @annotatesubrepoerror
782 def dirty(self, ignoreupdate=False): 782 def dirty(self, ignoreupdate=False):