perfmanifest: allow and require passing in a rev
Previously perfmanifest would only test tip.
--- 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)