[PATCH 3 of 5 V4] templates-default: factor out definition of changeset labels
Denis Laxalde
denis.laxalde at logilab.fr
Tue Jan 3 12:54:37 UTC 2017
# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1483446329 -3600
# Tue Jan 03 13:25:29 2017 +0100
# Node ID 412f8e24f48c8f7006f826a3eeb41f9521c53e4f
# Parent 7a01933ed8be3b286a0bbd666d46e7de3efa2d67
# EXP-Topic evolve-ui
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.
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
@@ -28,13 +28,14 @@ lfile_copies_switch = '{if(file_copies_s
% ' {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}",
More information about the Mercurial-devel
mailing list