comparison mercurial/match.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 f3db5c805a67
comparison
equal deleted inserted replaced
41675:ddbebce94665 41676:0531dff73d0b
188 em = _buildkindpatsmatcher(includematcher, root, kindpats, ctx=ctx, 188 em = _buildkindpatsmatcher(includematcher, root, kindpats, ctx=ctx,
189 listsubrepos=listsubrepos, badfn=None) 189 listsubrepos=listsubrepos, badfn=None)
190 m = differencematcher(m, em) 190 m = differencematcher(m, em)
191 return m 191 return m
192 192
193 def exact(root, cwd, files, badfn=None): 193 def exact(files, badfn=None):
194 return exactmatcher(files, badfn=badfn) 194 return exactmatcher(files, badfn=badfn)
195 195
196 def always(root, cwd, badfn=None): 196 def always(badfn=None):
197 return alwaysmatcher(badfn=badfn) 197 return alwaysmatcher(badfn)
198 198
199 def never(root, cwd, badfn=None): 199 def never(badfn=None):
200 return nevermatcher(badfn=badfn) 200 return nevermatcher(badfn)
201 201
202 def badmatch(match, badfn): 202 def badmatch(match, badfn):
203 """Make a copy of the given matcher, replacing its bad method with the given 203 """Make a copy of the given matcher, replacing its bad method with the given
204 one. 204 one.
205 """ 205 """