comparison hgext/sparse.py @ 41676:0531dff73d0b

match: delete unused root and cwd arguments from {always,never,exact}() (API) Differential Revision: https://phab.mercurial-scm.org/D5930
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 09 Feb 2019 22:50:53 -0800
parents ddbebce94665
children f9344d04909e
comparison
equal deleted inserted replaced
41675:ddbebce94665 41676:0531dff73d0b
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(None, None, match.files()) 202 em = matchmod.exact(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)