revset: categorize wdir() as very fast function
authorYuya Nishihara <yuya@tcha.org>
Sat, 20 Aug 2016 17:50:23 +0900
changeset 30700 323f0c4b43f4
parent 30699 5bda147c3139
child 30701 8b1d87243710
revset: categorize wdir() as very fast function The cost of wdir() should be identical to or cheaper than _intlist().
mercurial/revset.py
--- 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