# HG changeset patch # User Yuya Nishihara # Date 1470546807 -32400 # Node ID 90a1886a203b51cc6d02bc25e1d25c0704fc5ea2 # Parent 104914b03b834d105f410c45d5486742758ade2f revset: remove false condition to process 'negate' operator 'negate' is mapped to 'string' at the above clause. diff -r 104914b03b83 -r 90a1886a203b 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)