Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
24852:515cd710df95 | 24853:6518880de1b3 |
---|---|
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")}' |