changeset 20846:b581c5827516

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 26 Mar 2014 17:25:11 -0700
parents bc95143446e8
children c3f455337c6a
files contrib/perf.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/perf.py	Thu Mar 20 18:55:28 2014 -0700
+++ b/contrib/perf.py	Wed Mar 26 17:25:11 2014 -0700
@@ -335,7 +335,7 @@
     def d():
         if clear:
             repo.invalidatevolatilesets()
-        repo.revs(expr)
+        for r in repo.revs(expr): pass
     timer(d)
 
 @command('perfvolatilesets')