Submitter | Pierre-Yves David |
---|---|
Date | Oct. 8, 2019, 11:47 a.m. |
Message ID | <574a82b6c9e77c1ffd3e.1570535270@nodosa.octobus.net> |
Download | mbox | patch |
Permalink | /patch/42097/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -1112,11 +1112,13 @@ def perfdirstate(ui, repo, **opts): timer, fm = gettimer(ui, opts) b"a" in repo.dirstate + def setup(): + repo.dirstate.invalidate() + def d(): - repo.dirstate.invalidate() b"a" in repo.dirstate - timer(d) + timer(d, setup=setup) fm.end()