Mercurial > hg
comparison contrib/perf.py @ 40747:380a1f73830f
perf: disable revlogs clearing in `perftags` by default
This aligns things with what `perfbookmarks` does. I decided to disable the
revlogs clearing by default to focus on the core logic by default, ignoring
side effects.
If we prefer to emphasize the side effect, we can instead keep this on in
`perftags` and enable it by default in `perfbookmarks`.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 20 Nov 2018 17:44:24 +0000 |
parents | 82c189c511bd |
children | 45a0047c0ebc |
comparison
equal
deleted
inserted
replaced
40746:82c189c511bd | 40747:380a1f73830f |
---|---|
538 timer(d) | 538 timer(d) |
539 fm.end() | 539 fm.end() |
540 | 540 |
541 @command(b'perftags', formatteropts+ | 541 @command(b'perftags', formatteropts+ |
542 [ | 542 [ |
543 (b'', b'clear-revlogs', True, b'refresh changelog and manifest'), | 543 (b'', b'clear-revlogs', False, b'refresh changelog and manifest'), |
544 ]) | 544 ]) |
545 def perftags(ui, repo, **opts): | 545 def perftags(ui, repo, **opts): |
546 opts = _byteskwargs(opts) | 546 opts = _byteskwargs(opts) |
547 timer, fm = gettimer(ui, opts) | 547 timer, fm = gettimer(ui, opts) |
548 repocleartagscache = repocleartagscachefunc(repo) | 548 repocleartagscache = repocleartagscachefunc(repo) |