contrib/perf.py
changeset 19712 79e5de2bfa8c
parent 19711 0a881ea4bed4
child 19786 fe8795dee77d
equal deleted inserted replaced
19711:0a881ea4bed4 19712:79e5de2bfa8c
   169     ctx2 = scmutil.revsingle(repo, rev2, rev2)
   169     ctx2 = scmutil.revsingle(repo, rev2, rev2)
   170     def d():
   170     def d():
   171         copies.pathcopies(ctx1, ctx2)
   171         copies.pathcopies(ctx1, ctx2)
   172     timer(d)
   172     timer(d)
   173 
   173 
   174 @command('perfmanifest')
   174 @command('perfmanifest', [], 'REV')
   175 def perfmanifest(ui, repo):
   175 def perfmanifest(ui, repo, rev):
   176     def d():
   176     ctx = scmutil.revsingle(repo, rev, rev)
   177         t = repo.manifest.tip()
   177     t = ctx.manifestnode()
       
   178     def d():
   178         repo.manifest._mancache.clear()
   179         repo.manifest._mancache.clear()
   179         repo.manifest._cache = None
   180         repo.manifest._cache = None
   180         repo.manifest.read(t)
   181         repo.manifest.read(t)
   181     timer(d)
   182     timer(d)
   182 
   183