changeset 20646:a4d587c6e3dd

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
author Lucas Moscovicz <lmoscovicz@fb.com>
date Wed, 05 Mar 2014 17:42:05 -0800
parents 7d83c3b6e8d9
children 70d02abff434
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):
         '''