Mercurial > hg
changeset 13873:02c3d4d44a92
revset: teach optimizer that closed is slowish
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 04 Apr 2011 14:21:54 -0500 |
parents | e6bd5b403de0 |
children | 9d67277c9204 |
files | mercurial/revset.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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