revsets: reduce cost of outgoing in the optimizer
authorMatt Mackall <mpm@selenic.com>
Mon, 20 Sep 2010 16:40:36 -0500
changeset 12351 b913232d13c1
parent 12350 e7e3b0618d8d
child 12354 9f7f58afc131
revsets: reduce cost of outgoing in the optimizer
mercurial/revset.py
--- a/mercurial/revset.py	Thu Sep 02 15:00:45 2010 +0200
+++ b/mercurial/revset.py	Mon Sep 20 16:40:36 2010 -0500
@@ -562,9 +562,9 @@
     elif op == 'func':
         f = getstring(x[1], _("not a symbol"))
         wa, ta = optimize(x[2], small)
-        if f in "grep date user author keyword branch file":
+        if f in "grep date user author keyword branch file outgoing":
             w = 10 # slow
-        elif f in "modifies adds removes outgoing":
+        elif f in "modifies adds removes":
             w = 30 # slower
         elif f == "contains":
             w = 100 # very slow