# HG changeset patch # User Matt Mackall # Date 2010-09-20 21:40:36 # Node ID b913232d13c190d0ecac7db2e69194c05612ea21 # Parent e7e3b0618d8d7aa975bdcaa96fda1b932f1cdc7c revsets: reduce cost of outgoing in the optimizer diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -562,9 +562,9 @@ def optimize(x, small): 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