Show More
@@ -28,6 +28,8 b' keywords are usually available for templ' | |||||
28 | :branches: String. The name of the branch on which the changeset was |
|
28 | :branches: String. The name of the branch on which the changeset was | |
29 | committed. Will be empty if the branch name was default. |
|
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 | :date: Date information. The date when the changeset was committed. |
|
33 | :date: Date information. The date when the changeset was committed. | |
32 |
|
34 | |||
33 | :desc: String. The text of the changeset description. |
|
35 | :desc: String. The text of the changeset description. |
@@ -151,6 +151,11 b' def showbranches(**args):' | |||||
151 | branch = encoding.tolocal(branch) |
|
151 | branch = encoding.tolocal(branch) | |
152 | return showlist('branch', [branch], plural='branches', **args) |
|
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 | def showdate(repo, ctx, templ, **args): |
|
159 | def showdate(repo, ctx, templ, **args): | |
155 | return ctx.date() |
|
160 | return ctx.date() | |
156 |
|
161 | |||
@@ -245,6 +250,7 b' def showtags(**args):' | |||||
245 | keywords = { |
|
250 | keywords = { | |
246 | 'author': showauthor, |
|
251 | 'author': showauthor, | |
247 | 'branches': showbranches, |
|
252 | 'branches': showbranches, | |
|
253 | 'children': showchildren, | |||
248 | 'date': showdate, |
|
254 | 'date': showdate, | |
249 | 'desc': showdescription, |
|
255 | 'desc': showdescription, | |
250 | 'diffstat': showdiffstat, |
|
256 | 'diffstat': showdiffstat, |
General Comments 0
You need to be logged in to leave comments.
Login now