changeset 29897:90a1886a203b

revset: remove false condition to process 'negate' operator 'negate' is mapped to 'string' at the above clause.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 07 Aug 2016 14:13:27 +0900
parents 104914b03b83
children 7203400f91b0
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)