cmdutil: changed walkchangerevs to use spanset instead of baseset
authorLucas Moscovicz <lmoscovicz@fb.com>
Wed, 05 Mar 2014 18:49:47 -0800
changeset 20704 623ed0ed793e
parent 20703 e07b1fd30805
child 20705 9cc2249a9461
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__.
mercurial/cmdutil.py
--- 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 []