# HG changeset patch # User Pierre-Yves David # Date 2014-03-27 00:25:11 # Node ID b581c5827516ac14fb30c2ca1df9a4b153fac919 # Parent bc95143446e88341be2943253a2ceef76f813a77 perf: unroll the result in perfrevset With the new lazy revset implementation, we need to actually read all elements to trigger all the computations. Otherwise a no-op if of course much faster than the full work. diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -335,7 +335,7 @@ def perfrevset(ui, repo, expr, clear=Fal def d(): if clear: repo.invalidatevolatilesets() - repo.revs(expr) + for r in repo.revs(expr): pass timer(d) @command('perfvolatilesets')