197 """ |
197 """ |
198 |
198 |
199 def walk(orig, self, match, subrepos, unknown, ignored, full=True): |
199 def walk(orig, self, match, subrepos, unknown, ignored, full=True): |
200 # hack to not exclude explicitly-specified paths so that they can |
200 # hack to not exclude explicitly-specified paths so that they can |
201 # be warned later on e.g. dirstate.add() |
201 # be warned later on e.g. dirstate.add() |
202 em = matchmod.exact(match._root, match._cwd, match.files()) |
202 em = matchmod.exact(None, None, match.files()) |
203 sm = matchmod.unionmatcher([self._sparsematcher, em]) |
203 sm = matchmod.unionmatcher([self._sparsematcher, em]) |
204 match = matchmod.intersectmatchers(match, sm) |
204 match = matchmod.intersectmatchers(match, sm) |
205 return orig(self, match, subrepos, unknown, ignored, full) |
205 return orig(self, match, subrepos, unknown, ignored, full) |
206 |
206 |
207 extensions.wrapfunction(dirstate.dirstate, 'walk', walk) |
207 extensions.wrapfunction(dirstate.dirstate, 'walk', walk) |