Mercurial > hg-stable
changeset 19712:79e5de2bfa8c
perfmanifest: allow and require passing in a rev
Previously perfmanifest would only test tip.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Fri, 06 Sep 2013 13:35:29 -0700 |
parents | 0a881ea4bed4 |
children | c2e27e57d250 |
files | contrib/perf.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)