From patchwork Fri Sep 6 21:01:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3,of,3] perfmanifest: allow and require passing in a rev From: Siddharth Agarwal X-Patchwork-Id: 2397 Message-Id: To: mercurial-devel@selenic.com Date: Fri, 06 Sep 2013 14:01:19 -0700 # HG changeset patch # User Siddharth Agarwal # 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) -@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)