Mercurial > hg
changeset 30700:323f0c4b43f4
revset: categorize wdir() as very fast function
The cost of wdir() should be identical to or cheaper than _intlist().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 20 Aug 2016 17:50:23 +0900 |
parents | 5bda147c3139 |
children | 8b1d87243710 |
files | mercurial/revset.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Sat May 23 11:04:11 2015 +0900 +++ b/mercurial/revset.py Sat Aug 20 17:50:23 2016 +0900 @@ -2606,7 +2606,7 @@ w = 100 # very slow elif f == "ancestor": w = 1 * smallbonus - elif f in ('reverse', 'limit', 'first', '_intlist'): + elif f in ('reverse', 'limit', 'first', 'wdir', '_intlist'): w = 0 elif f == "sort": w = 10 # assume most sorts look at changelog