revset: fix - handling in the optimizer
authorMatt Mackall <mpm@selenic.com>
Fri, 04 Jun 2010 10:26:55 -0500
changeset 11283 a6356b2695a3
parent 11282 e581f3acc338
child 11284 0b5c2e82aeb5
revset: fix - handling in the optimizer
mercurial/revset.py
--- a/mercurial/revset.py	Thu Jun 03 20:32:41 2010 -0500
+++ b/mercurial/revset.py	Fri Jun 04 10:26:55 2010 -0500
@@ -486,7 +486,7 @@
         smallbonus = .5
 
     op = x[0]
-    if op == '-':
+    if op == 'minus':
         return optimize(('and', x[1], ('not', x[2])), small)
     elif op == 'dagrange':
         return optimize(('and', ('func', ('symbol', 'descendants'), x[1]),