changeset 20704:623ed0ed793e

cmdutil: changed walkchangerevs to use spanset instead of baseset Using a spanset takes almost no memory at all. A baseset builds the entire list in memory and is much slower for methods like __contains__.
author Lucas Moscovicz <lmoscovicz@fb.com>
date Wed, 05 Mar 2014 18:49:47 -0800
parents e07b1fd30805
children 9cc2249a9461
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Mon Feb 24 16:36:17 2014 -0800
+++ b/mercurial/cmdutil.py	Wed Mar 05 18:49:47 2014 -0800
@@ -1296,7 +1296,7 @@
     elif follow:
         revs = repo.revs('reverse(:.)')
     else:
-        revs = revset.baseset(repo)
+        revs = revset.spanset(repo)
         revs.reverse()
     if not revs:
         return []