[PATCH 3 of 3] perfmanifest: allow and require passing in a rev
Siddharth Agarwal
sid0 at fb.com
Fri Sep 6 16:01:19 CDT 2013
# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1378499729 25200
# Fri Sep 06 13:35:29 2013 -0700
# Node ID b36dabbc3a3aab387df0a56e432e067bc1c14861
# Parent 9a82c7ceac3337c8aa7f106d51419b2051e9165e
perfmanifest: allow and require passing in a rev
Previously perfmanifest would only test tip.
diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -171,10 +171,11 @@
copies.pathcopies(ctx1, ctx2)
timer(d)
- at command('perfmanifest')
-def perfmanifest(ui, repo):
+ at 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)
More information about the Mercurial-devel
mailing list