# HG changeset patch # User Matt Mackall # Date 1285018836 18000 # Node ID b913232d13c190d0ecac7db2e69194c05612ea21 # Parent e7e3b0618d8d7aa975bdcaa96fda1b932f1cdc7c revsets: reduce cost of outgoing in the optimizer diff -r e7e3b0618d8d -r b913232d13c1 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