Mercurial > hg
changeset 49412:3635aae8b2e9
perf-bundle: accept --rev arguments
This is fairly standard nowaday.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 11 Jul 2022 23:10:55 +0200 |
parents | b081a5aab782 |
children | b380583ad2f5 |
files | contrib/perf.py |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/perf.py Mon Jul 11 22:50:59 2022 +0200 +++ b/contrib/perf.py Mon Jul 11 23:10:55 2022 +0200 @@ -974,7 +974,20 @@ fm.end() -@command(b'perf::bundle', formatteropts, b'REVS') +@command( + b'perf::bundle', + [ + ( + b'r', + b'rev', + [], + b'changesets to bundle', + b'REV', + ), + ] + + formatteropts, + b'REVS', +) def perfbundle(ui, repo, *revs, **opts): """benchmark the creation of a bundle from a repository @@ -988,6 +1001,8 @@ timer, fm = gettimer(ui, opts) cl = repo.changelog + revs = list(revs) + revs.extend(opts.get(b'rev', ())) revs = scmutil.revrange(repo, revs) if not revs: raise error.Abort(b"not revision specified")