diff -r 10c5eacd793f -r 6ecfd12f09cd mercurial/commands.py --- a/mercurial/commands.py Sat Sep 01 12:09:22 2018 +0900 +++ b/mercurial/commands.py Sat Sep 01 12:15:02 2018 +0900 @@ -3058,13 +3058,8 @@ numoutput = ["%d" % p.rev() for p in parents] output.append("%s%s" % ('+'.join(numoutput), dirty)) - fn = fm.nested('parents', tmpl='{rev}:{node|formatnode}', sep=' ') - for p in parents: - fn.startitem() - fn.data(rev=p.rev()) - fn.data(node=p.hex()) - fn.context(ctx=p) - fn.end() + fm.data(parents=fm.formatlist([fm.hexfunc(p.node()) + for p in parents], name='node')) else: hexoutput = fm.hexfunc(ctx.node()) if default or id: