perfmanifest: allow and require passing in a rev
authorSiddharth Agarwal <sid0@fb.com>
Fri, 06 Sep 2013 13:35:29 -0700
changeset 19712 79e5de2bfa8c
parent 19711 0a881ea4bed4
child 19713 c2e27e57d250
perfmanifest: allow and require passing in a rev Previously perfmanifest would only test tip.
contrib/perf.py
--- 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)