# HG changeset patch # User Boris Feld # Date 2018-11-23 00:32:57 # Node ID 30f443d34a7d34f168c8159273cbcd56d8cedc8d # Parent 94d76ddac40a05aa4658303f5b7828d4c1480ad9 perf: use an explicit function in perfbranchmapload This make things clearer. diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -2247,7 +2247,9 @@ def perfbranchmapload(ui, repo, filter=b 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')