Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 33089:9e0d222f5687
identify: change p1/p2 to a list of parents
It makes sense because the nested data structure is a list of items.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 26 Jun 2017 09:18:55 +0900 |
parents | a49ab7f5e7e7 |
children | 73dfc72704b6 |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Jun 25 13:31:56 2017 -0700 +++ b/mercurial/commands.py Mon Jun 26 09:18:55 2017 +0900 @@ -2790,12 +2790,12 @@ numoutput = ["%d" % p.rev() for p in parents] output.append("%s%s" % ('+'.join(numoutput), dirty)) - for i, p in enumerate(parents): - fn = fm.nested('p%d' % (i + 1)) + fn = fm.nested('parents') + for p in parents: fn.startitem() fn.data(rev=p.rev()) fn.data(node=p.hex()) - fn.end() + fn.end() else: hexoutput = hexfunc(ctx.node()) if default or id: