Mercurial > public > mercurial-scm > hg
comparison contrib/benchmarks/perf.py @ 43076:2372284d9457
formatting: blacken the codebase
This is using my patch to black
(https://github.com/psf/black/pull/826) so we don't un-wrap collection
literals.
Done with:
hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"' | xargs black -S
# skip-blame mass-reformatting only
# no-check-commit reformats foo_bar functions
Differential Revision: https://phab.mercurial-scm.org/D6971
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 09:45:02 -0400 |
parents | cff0f5926797 |
children | 6000f5b25c9b |
comparison
equal
deleted
inserted
replaced
43075:57875cf423c9 | 43076:2372284d9457 |
---|---|
7 | 7 |
8 from __future__ import absolute_import | 8 from __future__ import absolute_import |
9 | 9 |
10 from . import perfbench | 10 from . import perfbench |
11 | 11 |
12 | |
12 @perfbench() | 13 @perfbench() |
13 def track_tags(perf): | 14 def track_tags(perf): |
14 return perf("perftags") | 15 return perf("perftags") |
16 | |
15 | 17 |
16 @perfbench() | 18 @perfbench() |
17 def track_status(perf): | 19 def track_status(perf): |
18 return perf("perfstatus", unknown=False) | 20 return perf("perfstatus", unknown=False) |
19 | 21 |
22 | |
20 @perfbench(params=[('rev', ['1000', '10000', 'tip'])]) | 23 @perfbench(params=[('rev', ['1000', '10000', 'tip'])]) |
21 def track_manifest(perf, rev): | 24 def track_manifest(perf, rev): |
22 return perf("perfmanifest", rev) | 25 return perf("perfmanifest", rev) |
23 | 26 |
27 | |
24 @perfbench() | 28 @perfbench() |
25 def track_heads(perf): | 29 def track_heads(perf): |
26 return perf("perfheads") | 30 return perf("perfheads") |