Mercurial > public > mercurial-scm > hg
comparison contrib/perf.py @ 30370:10c924596e5c
manifest: move clearcaches to manifestlog
This is part of removing all functionality from manifest.manifest so we can
delete the class entirely.
author | Durham Goode <durham@fb.com> |
---|---|
date | Thu, 10 Nov 2016 02:13:19 -0800 |
parents | d79c141fdf41 |
children | e77e8876886f |
comparison
equal
deleted
inserted
replaced
30369:d79c141fdf41 | 30370:10c924596e5c |
---|---|
564 def perfmanifest(ui, repo, rev, **opts): | 564 def perfmanifest(ui, repo, rev, **opts): |
565 timer, fm = gettimer(ui, opts) | 565 timer, fm = gettimer(ui, opts) |
566 ctx = scmutil.revsingle(repo, rev, rev) | 566 ctx = scmutil.revsingle(repo, rev, rev) |
567 t = ctx.manifestnode() | 567 t = ctx.manifestnode() |
568 def d(): | 568 def d(): |
569 repo.manifest.clearcaches() | 569 repo.manifestlog.clearcaches() |
570 repo.manifestlog[t].read() | 570 repo.manifestlog[t].read() |
571 timer(d) | 571 timer(d) |
572 fm.end() | 572 fm.end() |
573 | 573 |
574 @command('perfchangeset', formatteropts) | 574 @command('perfchangeset', formatteropts) |