equal
deleted
inserted
replaced
535 |
535 |
536 opts = _byteskwargs(opts) |
536 opts = _byteskwargs(opts) |
537 timer, fm = gettimer(ui, opts) |
537 timer, fm = gettimer(ui, opts) |
538 svfs = getsvfs(repo) |
538 svfs = getsvfs(repo) |
539 repocleartagscache = repocleartagscachefunc(repo) |
539 repocleartagscache = repocleartagscachefunc(repo) |
540 def t(): |
540 def s(): |
541 repo.changelog = mercurial.changelog.changelog(svfs) |
541 repo.changelog = mercurial.changelog.changelog(svfs) |
542 rootmanifest = mercurial.manifest.manifestrevlog(svfs) |
542 rootmanifest = mercurial.manifest.manifestrevlog(svfs) |
543 repo.manifestlog = mercurial.manifest.manifestlog(svfs, repo, |
543 repo.manifestlog = mercurial.manifest.manifestlog(svfs, repo, |
544 rootmanifest) |
544 rootmanifest) |
545 repocleartagscache() |
545 repocleartagscache() |
|
546 def t(): |
546 return len(repo.tags()) |
547 return len(repo.tags()) |
547 timer(t) |
548 timer(t, setup=s) |
548 fm.end() |
549 fm.end() |
549 |
550 |
550 @command(b'perfancestors', formatteropts) |
551 @command(b'perfancestors', formatteropts) |
551 def perfancestors(ui, repo, **opts): |
552 def perfancestors(ui, repo, **opts): |
552 opts = _byteskwargs(opts) |
553 opts = _byteskwargs(opts) |