templates-default: factor out definition of changeset labels
authorDenis Laxalde <denis.laxalde@logilab.fr>
Tue, 03 Jan 2017 13:25:29 +0100
changeset 30696 667d9c93c412
parent 30695 f05ede08dcf7
child 30697 13d94304c8da
templates-default: factor out definition of changeset labels This is redundant for normal and debug mode and prepares extension of this list that should effect both modes.
mercurial/templates/map-cmdline.default
--- a/mercurial/templates/map-cmdline.default	Mon Oct 10 12:06:58 2016 +0200
+++ b/mercurial/templates/map-cmdline.default	Tue Jan 03 13:25:29 2017 +0100
@@ -28,13 +28,14 @@
                                                % ' {name} ({source})'}\n"))}'
 
 # General templates
-cset = '{label("log.changeset changeset.{phase}",
+_cset_labels = 'log.changeset changeset.{phase}'
+cset = '{label("{_cset_labels}",
                "changeset:   {rev}:{node|short}")}\n'
 
 lphase = '{label("log.phase",
                  "phase:       {phase}")}\n'
 
-fullcset = '{label("log.changeset changeset.{phase}",
+fullcset = '{label("{_cset_labels}",
                    "changeset:   {rev}:{node}")}\n'
 
 parent = '{label("log.parent changeset.{phase}",