Patchwork [2,of,4] template: update map-cmdline.default with troubled states

login
register
mail settings
Submitter Romain DEP.
Date Jan. 6, 2015, 9:48 a.m.
Message ID <43da4f6fc04f5886bec7.1420537713@ultas>
Download mbox | patch
Permalink /patch/7335/
State Changes Requested
Headers show

Comments

Romain DEP. - Jan. 6, 2015, 9:48 a.m.
# HG changeset patch
# User Romain DEP. <rom1dep@gmail.com>
# Date 1420456238 -3600
#      Mon Jan 05 12:10:38 2015 +0100
# Node ID 43da4f6fc04f5886bec71483cda9f42382d2fc29
# Parent  e42d7e651a8f68ff55cea9f67f8247ebe82a6142
template: update map-cmdline.default with troubled states
Pierre-Yves David - Jan. 9, 2015, 4:50 a.m.
On 01/06/2015 01:48 AM, Romain DEP. wrote:
> # HG changeset patch
> # User Romain DEP. <rom1dep@gmail.com>
> # Date 1420456238 -3600
> #      Mon Jan 05 12:10:38 2015 +0100
> # Node ID 43da4f6fc04f5886bec71483cda9f42382d2fc29
> # Parent  e42d7e651a8f68ff55cea9f67f8247ebe82a6142
> template: update map-cmdline.default with troubled states

You must be more verbose in your description here.

What is the real effect of the change in this changesets? Why should 
such change be done? etc…

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
@@ -27,17 +27,20 @@ 
                                  "copies:     {file_copies_switch
                                                % ' {name} ({source})'}\n"))}'
 
+ltroubles = '{if(troubles,
+                " changeset.{join(troubles, ' changeset.')}")}'
+
 # General templates
-cset = '{label("log.changeset changeset.{phase} changeset.{hidden} changeset.{obsolete}",
+cset = '{label("log.changeset changeset.{phase} changeset.{hidden} changeset.{obsolete}{ltroubles}",
                "changeset:   {rev}:{node|short}")}\n'
 
 lphase = '{label("log.phase",
                  "phase:       {phase}")}\n'
 
-fullcset = '{label("log.changeset changeset.{phase} changeset.{hidden} changeset.{obsolete}",
+fullcset = '{label("log.changeset changeset.{phase} changeset.{hidden} changeset.{obsolete}{ltroubles}",
                    "changeset:   {rev}:{node}")}\n'
 
-parent = '{label("log.parent changeset.{phase} changeset.{hidden} changeset.{obsolete}",
+parent = '{label("log.parent changeset.{phase} changeset.{hidden} changeset.{obsolete}{ltroubles}",
                   "parent:      {rev}:{node|formatnode}")}\n'
 
 node = '{label("log.node",