# HG changeset patch # User Lucas Moscovicz # Date 1394074187 28800 # 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 -r e07b1fd30805 -r 623ed0ed793e 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 []