mercurial/fileset.py
changeset 38828 3ea6ce609747
parent 38827 48fc2a8af345
child 38829 7e7e2b2ff284
--- a/mercurial/fileset.py	Sat Jul 21 16:13:30 2018 +0900
+++ b/mercurial/fileset.py	Sat Jul 21 16:16:44 2018 +0900
@@ -62,9 +62,6 @@
     ym = getmatch(mctx, y)
     return matchmod.differencematcher(xm, ym)
 
-def negatematch(mctx, x):
-    raise error.ParseError(_("can't use negate operator in this context"))
-
 def listmatch(mctx, *xs):
     raise error.ParseError(_("can't use a list in this context"),
                            hint=_('see \'hg help "filesets.x or y"\''))
@@ -436,7 +433,6 @@
     'and': andmatch,
     'or': ormatch,
     'minus': minusmatch,
-    'negate': negatematch,
     'list': listmatch,
     'not': notmatch,
     'func': func,