localrepo: changed revs to use spanset instead of baseset
Performance benchmarking:
$ time hg log -qf -l1
...
real 0m1.420s
user 0m1.249s
sys 0m0.167s
$ time ~/local/hg/hg log -qf -l1
...
real 0m0.719s
user 0m0.614s
sys 0m0.103s
--- a/mercurial/localrepo.py Wed Mar 05 09:31:05 2014 +0000
+++ b/mercurial/localrepo.py Wed Mar 05 17:42:05 2014 -0800
@@ -428,7 +428,7 @@
'''Return a list of revisions matching the given revset'''
expr = revset.formatspec(expr, *args)
m = revset.match(None, expr)
- return revset.baseset([r for r in m(self, revset.baseset(self))])
+ return m(self, revset.spanset(self))
def set(self, expr, *args):
'''