##// END OF EJS Templates
perf: move cache clearing in the `setup` step of `perfheads`...
Boris Feld -
r41481:ab6d1f82 default
parent child Browse files
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