# HG changeset patch # User Matt Mackall # Date 1301944914 18000 # Node ID 02c3d4d44a92515ebcae8743bcb872f63ebbb9f7 # Parent e6bd5b403de0e487d558be688b72da809fd23b4c revset: teach optimizer that closed is slowish diff -r e6bd5b403de0 -r 02c3d4d44a92 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