Show More
@@ -537,14 +537,15 b' def perftags(ui, repo, **opts):' | |||
|
537 | 537 | timer, fm = gettimer(ui, opts) |
|
538 | 538 | svfs = getsvfs(repo) |
|
539 | 539 | repocleartagscache = repocleartagscachefunc(repo) |
|
540 |
def |
|
|
540 | def s(): | |
|
541 | 541 | repo.changelog = mercurial.changelog.changelog(svfs) |
|
542 | 542 | rootmanifest = mercurial.manifest.manifestrevlog(svfs) |
|
543 | 543 | repo.manifestlog = mercurial.manifest.manifestlog(svfs, repo, |
|
544 | 544 | rootmanifest) |
|
545 | 545 | repocleartagscache() |
|
546 | def t(): | |
|
546 | 547 | return len(repo.tags()) |
|
547 | timer(t) | |
|
548 | timer(t, setup=s) | |
|
548 | 549 | fm.end() |
|
549 | 550 | |
|
550 | 551 | @command(b'perfancestors', formatteropts) |
General Comments 0
You need to be logged in to leave comments.
Login now