diff --git a/mercurial/revset.py b/mercurial/revset.py
index 104914b03b834d105f410c45d5486742758ade2f_bWVyY3VyaWFsL3JldnNldC5weQ==..90a1886a203b51cc6d02bc25e1d25c0704fc5ea2_bWVyY3VyaWFsL3JldnNldC5weQ== 100644
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -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)