# HG changeset patch # User Lucas Moscovicz # Date 2014-03-06 02:49:47 # Node ID 623ed0ed793e57723de6bb2f5351cfb3e2133ef5 # Parent e07b1fd308057aee6c10bd164a78bd693ac7c8a7 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__. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1296,7 +1296,7 @@ def walkchangerevs(repo, match, opts, pr elif follow: revs = repo.revs('reverse(:.)') else: - revs = revset.baseset(repo) + revs = revset.spanset(repo) revs.reverse() if not revs: return []