Mercurial > hg
changeset 33497:80e1331a7fe9
match: remove unused negatematcher
This was only used by the sparse extension's dirstate._ignore
override, which no longer exists.
Differential Revision: https://phab.mercurial-scm.org/D60
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 11 Jul 2017 10:46:55 -0700 |
parents | 258298f4712b |
children | b7a75b9a3386 |
files | mercurial/match.py |
diffstat | 1 files changed, 0 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/match.py Tue Jul 11 10:46:35 2017 -0700 +++ b/mercurial/match.py Tue Jul 11 10:46:55 2017 -0700 @@ -679,16 +679,6 @@ def __repr__(self): return ('<unionmatcher matchers=%r>' % self._matchers) -class negatematcher(basematcher): - def __init__(self, matcher): - self._matcher = matcher - - def matchfn(self, f): - return not self._matcher(f) - - def __repr__(self): - return ('<negatematcher matcher=%r>' % self._matcher) - def patkind(pattern, default=None): '''If pattern is 'kind:pat' with a known kind, return kind.''' return _patsplit(pattern, default)[0]