##// END OF EJS Templates
templates: 'children' keyword...
Jason Harris -
r11655:6faf015e default
parent child Browse files
Show More
@@ -28,6 +28,8 b' keywords are usually available for templ'
28 28 :branches: String. The name of the branch on which the changeset was
29 29 committed. Will be empty if the branch name was default.
30 30
31 :children: List of strings. The children of the changeset.
32
31 33 :date: Date information. The date when the changeset was committed.
32 34
33 35 :desc: String. The text of the changeset description.
@@ -151,6 +151,11 b' def showbranches(**args):'
151 151 branch = encoding.tolocal(branch)
152 152 return showlist('branch', [branch], plural='branches', **args)
153 153
154 def showchildren(**args):
155 ctx = args['ctx']
156 childrevs = ['%d:%s' % (cctx, cctx) for cctx in ctx.children()]
157 return showlist('children', childrevs, **args)
158
154 159 def showdate(repo, ctx, templ, **args):
155 160 return ctx.date()
156 161
@@ -245,6 +250,7 b' def showtags(**args):'
245 250 keywords = {
246 251 'author': showauthor,
247 252 'branches': showbranches,
253 'children': showchildren,
248 254 'date': showdate,
249 255 'desc': showdescription,
250 256 'diffstat': showdiffstat,
General Comments 0
You need to be logged in to leave comments. Login now