changeset 40700:30f443d34a7d

perf: use an explicit function in perfbranchmapload This make things clearer.
author Boris Feld <boris.feld@octobus.net>
date Fri, 23 Nov 2018 01:32:57 +0100
parents 94d76ddac40a
children e4ea63855d5a
files contrib/perf.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/perf.py	Fri Nov 23 01:20:18 2018 +0100
+++ b/contrib/perf.py	Fri Nov 23 01:32:57 2018 +0100
@@ -2247,7 +2247,9 @@
         raise error.Abort(b'No branchmap cached for %s repo'
                           % (filter or b'unfiltered'))
     timer, fm = gettimer(ui, opts)
-    timer(lambda: branchmap.read(repo) and None)
+    def bench():
+        branchmap.read(repo)
+    timer(bench)
     fm.end()
 
 @command(b'perfloadmarkers')