contrib/perf.py
changeset 19712 79e5de2bfa8c
parent 19711 0a881ea4bed4
child 19786 fe8795dee77d
--- a/contrib/perf.py	Fri Sep 06 13:20:07 2013 -0700
+++ b/contrib/perf.py	Fri Sep 06 13:35:29 2013 -0700
@@ -171,10 +171,11 @@
         copies.pathcopies(ctx1, ctx2)
     timer(d)
 
-@command('perfmanifest')
-def perfmanifest(ui, repo):
+@command('perfmanifest', [], 'REV')
+def perfmanifest(ui, repo, rev):
+    ctx = scmutil.revsingle(repo, rev, rev)
+    t = ctx.manifestnode()
     def d():
-        t = repo.manifest.tip()
         repo.manifest._mancache.clear()
         repo.manifest._cache = None
         repo.manifest.read(t)