Mercurial > hg-stable
changeset 41683:c302218a2528
match: allow passing in badfn to always() and never()
So that no callers are required to access the matchers themselves.
Differential Revision: https://phab.mercurial-scm.org/D5926
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 10 Feb 2019 14:16:33 -0800 |
parents | 34ae00a14783 |
children | 1db5ae4b0dda |
files | mercurial/match.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/match.py Sun Feb 10 14:04:08 2019 -0800 +++ b/mercurial/match.py Sun Feb 10 14:16:33 2019 -0800 @@ -194,11 +194,11 @@ def exact(root, cwd, files, badfn=None): return exactmatcher(root, cwd, files, badfn=badfn) -def always(root, cwd): - return alwaysmatcher(root, cwd) +def always(root, cwd, badfn=None): + return alwaysmatcher(root, cwd, badfn=badfn) -def never(root, cwd): - return nevermatcher(root, cwd) +def never(root, cwd, badfn=None): + return nevermatcher(root, cwd, badfn=badfn) def badmatch(match, badfn): """Make a copy of the given matcher, replacing its bad method with the given