mercurial/templatekw.py
changeset 36401 d65642840c6f
parent 36247 48a6b1a22ccf
child 36441 27cd83152d31
equal deleted inserted replaced
36400:7b86aa31b004 36401:d65642840c6f
   398 @templatekeyword('children')
   398 @templatekeyword('children')
   399 def showchildren(**args):
   399 def showchildren(**args):
   400     """List of strings. The children of the changeset."""
   400     """List of strings. The children of the changeset."""
   401     args = pycompat.byteskwargs(args)
   401     args = pycompat.byteskwargs(args)
   402     ctx = args['ctx']
   402     ctx = args['ctx']
   403     childrevs = ['%d:%s' % (cctx, cctx) for cctx in ctx.children()]
   403     childrevs = ['%d:%s' % (cctx.rev(), cctx) for cctx in ctx.children()]
   404     return showlist('children', childrevs, args, element='child')
   404     return showlist('children', childrevs, args, element='child')
   405 
   405 
   406 # Deprecated, but kept alive for help generation a purpose.
   406 # Deprecated, but kept alive for help generation a purpose.
   407 @templatekeyword('currentbookmark')
   407 @templatekeyword('currentbookmark')
   408 def showcurrentbookmark(**args):
   408 def showcurrentbookmark(**args):