# HG changeset patch # User Siddharth Agarwal # Date 1378499729 25200 # Node ID 79e5de2bfa8cd18e81e71fbba1a62eee15b5e354 # Parent 0a881ea4bed4adc474551746e773ac42d713cca2 perfmanifest: allow and require passing in a rev Previously perfmanifest would only test tip. diff -r 0a881ea4bed4 -r 79e5de2bfa8c 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)