comparison mercurial/templates/map-cmdline.default @ 24637:c1cb6523e968

templates-default: do not show description or summary if empty changeset_printer shows description only if ctx.description().strip() is not empty. The default template should do the same way.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 27 Mar 2015 22:12:53 +0900
parents 6136704b975d
children 9b1a8ce1f03b
comparison
equal deleted inserted replaced
24636:36872036169b 24637:c1cb6523e968
56 "bookmark: {bookmark}")}\n' 56 "bookmark: {bookmark}")}\n'
57 57
58 user = '{label("log.user", 58 user = '{label("log.user",
59 "user: {author}")}\n' 59 "user: {author}")}\n'
60 60
61 summary = '{label("log.summary", 61 summary = '{if(desc|strip, "{label('log.summary',
62 "summary: {desc|firstline}")}\n' 62 'summary: {desc|firstline}')}\n")}'
63 63
64 ldate = '{label("log.date", 64 ldate = '{label("log.date",
65 "date: {date|date}")}\n' 65 "date: {date|date}")}\n'
66 66
67 extra = '{label("ui.debug log.extra", 67 extra = '{label("ui.debug log.extra",
68 "extra: {key}={value|stringescape}")}\n' 68 "extra: {key}={value|stringescape}")}\n'
69 69
70 description = '{label("ui.note log.description", 70 description = '{if(desc|strip, "{label('ui.note log.description',
71 "description:")} 71 'description:')}
72 {label("ui.note log.description", 72 {label('ui.note log.description',
73 "{desc|strip}")}\n\n' 73 '{desc|strip}')}\n\n")}'