localrepo: changed revs to use spanset instead of baseset
authorLucas Moscovicz <lmoscovicz@fb.com>
Wed, 05 Mar 2014 17:42:05 -0800
changeset 20646 a4d587c6e3dd
parent 20645 7d83c3b6e8d9
child 20647 70d02abff434
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
mercurial/localrepo.py
--- 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):
         '''