--- a/mercurial/templatekw.py Thu Jul 22 16:51:45 2010 +0200
+++ b/mercurial/templatekw.py Sat Jul 03 05:24:16 2010 +0200
@@ -151,6 +151,11 @@
branch = encoding.tolocal(branch)
return showlist('branch', [branch], plural='branches', **args)
+def showchildren(**args):
+ ctx = args['ctx']
+ childrevs = ['%d:%s' % (cctx, cctx) for cctx in ctx.children()]
+ return showlist('children', childrevs, **args)
+
def showdate(repo, ctx, templ, **args):
return ctx.date()
@@ -245,6 +250,7 @@
keywords = {
'author': showauthor,
'branches': showbranches,
+ 'children': showchildren,
'date': showdate,
'desc': showdescription,
'diffstat': showdiffstat,