diff mercurial/revset.py @ 12351:b913232d13c1

revsets: reduce cost of outgoing in the optimizer
author Matt Mackall <mpm@selenic.com>
date Mon, 20 Sep 2010 16:40:36 -0500
parents 11db6fa2961e
children 4f8067c94729
line wrap: on
line diff
--- 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