mercurial/templatekw.py
changeset 36401 d65642840c6f
parent 36247 48a6b1a22ccf
child 36441 27cd83152d31
--- a/mercurial/templatekw.py	Sat Feb 24 16:18:40 2018 +0530
+++ b/mercurial/templatekw.py	Sat Feb 24 10:48:24 2018 -0800
@@ -400,7 +400,7 @@
     """List of strings. The children of the changeset."""
     args = pycompat.byteskwargs(args)
     ctx = args['ctx']
-    childrevs = ['%d:%s' % (cctx, cctx) for cctx in ctx.children()]
+    childrevs = ['%d:%s' % (cctx.rev(), cctx) for cctx in ctx.children()]
     return showlist('children', childrevs, args, element='child')
 
 # Deprecated, but kept alive for help generation a purpose.