Mercurial > hg
diff mercurial/templates/map-cmdline.phases @ 24853:6518880de1b3 stable
template-phases: do not show description or summary if empty
This is a copy of c1cb6523e968, but applied to the phases template,
which is itself almost a copy of the default template.
Perhaps we should rewrite these templates to use the %include syntax
afforded by config files. This change seems a bit too big for stable,
though.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Fri, 24 Apr 2015 14:52:12 -0400 |
parents | e810c7da1cae |
children | 9570587b6986 |
line wrap: on
line diff
--- a/mercurial/templates/map-cmdline.phases Fri Apr 24 14:17:14 2015 -0400 +++ b/mercurial/templates/map-cmdline.phases Fri Apr 24 14:52:12 2015 -0400 @@ -58,8 +58,8 @@ user = '{label("log.user", "user: {author}")}\n' -summary = '{label("log.summary", - "summary: {desc|firstline}")}\n' +summary = '{if(desc|strip, "{label('log.summary', + 'summary: {desc|firstline}')}\n")}' ldate = '{label("log.date", "date: {date|date}")}\n' @@ -67,7 +67,7 @@ extra = '{label("ui.debug log.extra", "extra: {key}={value|stringescape}")}\n' -description = '{label("ui.note log.description", - "description:")} - {label("ui.note log.description", - "{desc|strip}")}\n\n' +description = '{if(desc|strip, "{label('ui.note log.description', + 'description:')} + {label('ui.note log.description', + '{desc|strip}')}\n\n")}'