Show More
@@ -539,10 +539,11 b' def perfheads(ui, repo, **opts):' | |||||
539 | opts = _byteskwargs(opts) |
|
539 | opts = _byteskwargs(opts) | |
540 | timer, fm = gettimer(ui, opts) |
|
540 | timer, fm = gettimer(ui, opts) | |
541 | cl = repo.changelog |
|
541 | cl = repo.changelog | |
|
542 | def s(): | |||
|
543 | clearcaches(cl) | |||
542 | def d(): |
|
544 | def d(): | |
543 | len(cl.headrevs()) |
|
545 | len(cl.headrevs()) | |
544 | clearcaches(cl) |
|
546 | timer(d, setup=s) | |
545 | timer(d) |
|
|||
546 | fm.end() |
|
547 | fm.end() | |
547 |
|
548 | |||
548 | @command(b'perftags', formatteropts+ |
|
549 | @command(b'perftags', formatteropts+ |
General Comments 0
You need to be logged in to leave comments.
Login now