templates: fix missed space between instability labels
authorYuya Nishihara <yuya@tcha.org>
Sat, 14 Oct 2017 18:41:20 +0900
changeset 34717 06b52671552b
parent 34716 d36a36ca7bc2
child 34718 01206460897a
templates: fix missed space between instability labels
mercurial/templates/map-cmdline.default
tests/test-obsolete.t
--- a/mercurial/templates/map-cmdline.default	Sat Oct 14 18:24:01 2017 +0900
+++ b/mercurial/templates/map-cmdline.default	Sat Oct 14 18:41:20 2017 +0900
@@ -82,5 +82,6 @@
                                  "changeset.{phase}",
                                  if(obsolete, "changeset.obsolete"),
                                  if(instabilities, "changeset.unstable"),
-                                 instabilities % "instability.{instability}"),
+                                 join(instabilities
+                                      % "instability.{instability}", " ")),
                         expr)
--- a/tests/test-obsolete.t	Sat Oct 14 18:24:01 2017 +0900
+++ b/tests/test-obsolete.t	Sat Oct 14 18:41:20 2017 +0900
@@ -963,7 +963,7 @@
   
 
   $ hg log -T default -r 'phasedivergent()' --color=debug
-  [log.changeset changeset.draft changeset.unstable instability.orphaninstability.phase-divergent|changeset:   7:50c51b361e60]
+  [log.changeset changeset.draft changeset.unstable instability.orphan instability.phase-divergent|changeset:   7:50c51b361e60]
   [log.user|user:        test]
   [log.date|date:        Thu Jan 01 00:00:00 1970 +0000]
   [log.instability|instability: orphan, phase-divergent]