Submitter | Boris Feld |
---|---|
Date | Jan. 28, 2019, 8:10 p.m. |
Message ID | <1e7a5bec6326c537b65f.1548706255@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/38143/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -539,10 +539,11 @@ def perfheads(ui, repo, **opts): opts = _byteskwargs(opts) timer, fm = gettimer(ui, opts) cl = repo.changelog + def s(): + clearcaches(cl) def d(): len(cl.headrevs()) - clearcaches(cl) - timer(d) + timer(d, setup=s) fm.end() @command(b'perftags', formatteropts+