changeset 31700:32f9006dae4b

templates: use separate() to build changeset labels in command-line style
author Denis Laxalde <denis@laxalde.org>
date Tue, 28 Mar 2017 22:36:22 +0200
parents 568c4e7437b2
children ca971140ca76
files mercurial/templates/map-cmdline.default
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templates/map-cmdline.default	Sat Mar 25 10:34:11 2017 +0100
+++ b/mercurial/templates/map-cmdline.default	Tue Mar 28 22:36:22 2017 +0200
@@ -29,7 +29,7 @@
 
 # General templates
 _trouble_label = 'trouble.{trouble}'
-_cset_labels = 'log.changeset changeset.{phase}{if(troubles, " changeset.troubled {troubles%_trouble_label}")}'
+_cset_labels = '{separate(" ", "log.changeset", "changeset.{phase}", "{if(troubles, "changeset.troubled {troubles%_trouble_label}")}")}'
 cset = '{label("{_cset_labels}",
                "changeset:   {rev}:{node|short}")}\n'