Patchwork [3,of,6,V2] templates: use separate() to build changeset labels in command-line style

login
register
mail settings
Submitter Denis Laxalde
Date March 28, 2017, 9:09 p.m.
Message ID <b331a0451cdb6225f476.1490735341@marimba>
Download mbox | patch
Permalink /patch/19791/
State Accepted
Headers show

Comments

Denis Laxalde - March 28, 2017, 9:09 p.m.
# HG changeset patch
# User Denis Laxalde <denis@laxalde.org>
# Date 1490733382 -7200
#      Tue Mar 28 22:36:22 2017 +0200
# Node ID b331a0451cdb6225f4763e6f32353127f6b4d2bc
# Parent  cfa19b56c4cc0efad538f2e503161f1a8f211f22
# Available At https://bitbucket.org/dlax/hg-work
#              hg pull https://bitbucket.org/dlax/hg-work -r b331a0451cdb
# EXP-Topic obsolete-ui
templates: use separate() to build changeset labels in command-line style

Patch

diff --git a/mercurial/templates/map-cmdline.default b/mercurial/templates/map-cmdline.default
--- a/mercurial/templates/map-cmdline.default
+++ b/mercurial/templates/map-cmdline.default
@@ -29,7 +29,7 @@  lfile_copies_switch = '{if(file_copies_s
 
 # 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'