revset: remove false condition to process 'negate' operator
authorYuya Nishihara <yuya@tcha.org>
Sun, 07 Aug 2016 14:13:27 +0900
changeset 29897 90a1886a203b
parent 29896 104914b03b83
child 29898 7203400f91b0
revset: remove false condition to process 'negate' operator 'negate' is mapped to 'string' at the above clause.
mercurial/revset.py
--- a/mercurial/revset.py	Sun Aug 07 15:01:42 2016 +0900
+++ b/mercurial/revset.py	Sun Aug 07 14:13:27 2016 +0900
@@ -2371,7 +2371,7 @@
     elif op == 'negate':
         s = getstring(x[1], _("can't negate that"))
         return _optimize(('string', '-' + s), small)
-    elif op in 'string symbol negate':
+    elif op in 'string symbol':
         return smallbonus, x # single revisions are small
     elif op == 'and':
         wa, ta = _optimize(x[1], True)