revset: teach optimizer that closed is slowish
authorMatt Mackall <mpm@selenic.com>
Mon, 04 Apr 2011 14:21:54 -0500
changeset 13873 02c3d4d44a92
parent 13872 e6bd5b403de0
child 13874 9d67277c9204
revset: teach optimizer that closed is slowish
mercurial/revset.py
--- a/mercurial/revset.py	Mon Apr 04 18:05:14 2011 +0300
+++ b/mercurial/revset.py	Mon Apr 04 14:21:54 2011 -0500
@@ -808,7 +808,7 @@
     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 outgoing":
+        if f in "grep date user author keyword branch file outgoing closed":
             w = 10 # slow
         elif f in "modifies adds removes":
             w = 30 # slower