Mercurial > hg-stable
changeset 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 | e7e3b0618d8d |
children | 9f7f58afc131 |
files | mercurial/revset.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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