Mercurial > hg
changeset 38253:1b121cc680f2
perftemplating: fix the revisions argument
Before this change, the argument passed to log where a string instead of a list
of string. This meant only single character rev were supported...
We now properly accepts argument of any length. We also make it possible to
specify multiple REV arguments in the same go.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 31 May 2018 18:05:15 +0200 |
parents | a4aa77b84efd |
children | 6b91815fcdce |
files | contrib/perf.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/perf.py Sat Jun 09 15:14:31 2018 +0530 +++ b/contrib/perf.py Thu May 31 18:05:15 2018 +0200 @@ -898,12 +898,10 @@ fm.end() @command('perftemplating', formatteropts) -def perftemplating(ui, repo, rev=None, **opts): - if rev is None: - rev=[] +def perftemplating(ui, repo, *revs, **opts): timer, fm = gettimer(ui, opts) ui.pushbuffer() - timer(lambda: commands.log(ui, repo, rev=rev, date='', user='', + timer(lambda: commands.log(ui, repo, rev=revs, date='', user='', template='{date|shortdate} [{rev}:{node|short}]' ' {author|person}: {desc|firstline}\n')) ui.popbuffer()