equal
deleted
inserted
replaced
533 cl._nodecache = {nullid: nullrev} |
533 cl._nodecache = {nullid: nullrev} |
534 cl._nodepos = None |
534 cl._nodepos = None |
535 |
535 |
536 @command(b'perfheads', formatteropts) |
536 @command(b'perfheads', formatteropts) |
537 def perfheads(ui, repo, **opts): |
537 def perfheads(ui, repo, **opts): |
|
538 """benchmark the computation of a changelog heads""" |
538 opts = _byteskwargs(opts) |
539 opts = _byteskwargs(opts) |
539 timer, fm = gettimer(ui, opts) |
540 timer, fm = gettimer(ui, opts) |
540 cl = repo.changelog |
541 cl = repo.changelog |
541 def d(): |
542 def d(): |
542 len(cl.headrevs()) |
543 len(cl.headrevs()) |