D60: match: remove unused negatematcher

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon Jul 17 14:29:57 EDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG80e1331a7fe9: match: remove unused negatematcher (authored by martinvonz).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D60?vs=130&id=205

REVISION DETAIL
  https://phab.mercurial-scm.org/D60

AFFECTED FILES
  mercurial/match.py

CHANGE DETAILS

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -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]



EMAIL PREFERENCES
  https://phab.mercurial-scm.org/settings/panel/emailpreferences/

To: martinvonz, #hg-reviewers, durham, durin42
Cc: durham, mercurial-devel


More information about the Mercurial-devel mailing list