Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sparse.py @ 41686:ddbebce94665
match: delete unused root and cwd arguments to constructors (API)
Most matchers no longer need the root and cwd
arguments. patternmatcher and includematcher still need the root
argument for subincludes.
Differential Revision: https://phab.mercurial-scm.org/D5929
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 10 Feb 2019 14:35:36 -0800 |
parents | 0bd56c291359 |
children | 0531dff73d0b |
line wrap: on
line diff
--- a/mercurial/sparse.py Sun Feb 10 21:33:21 2019 -0800 +++ b/mercurial/sparse.py Sun Feb 10 14:35:36 2019 -0800 @@ -264,7 +264,7 @@ """Returns a matcher that returns true for any of the forced includes before testing against the actual matcher.""" kindpats = [('path', include, '') for include in includes] - includematcher = matchmod.includematcher('', '', kindpats) + includematcher = matchmod.includematcher('', kindpats) return matchmod.unionmatcher([includematcher, matcher]) def matcher(repo, revs=None, includetemp=True):