changeset 45882:774b1c0f2507

relnotes: document new [command-templates] section Differential Revision: https://phab.mercurial-scm.org/D9266
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 30 Oct 2020 12:46:38 -0700
parents 996cd73431a3
children f67741e8264b
files relnotes/next
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/relnotes/next	Fri Oct 30 13:26:18 2020 -0700
+++ b/relnotes/next	Fri Oct 30 12:46:38 2020 -0700
@@ -1,5 +1,21 @@
 == New Features ==
 
+ * There is a new config section for templates used by hg commands. It
+   is called `[command-templates]`. Some existing config options have
+   been deprecated in favor of config options in the new
+   section. These are: `ui.logtemplate` to `command-templates.log`,
+   `ui.graphnodetemplate` to `command-templates.graphnode`,
+   `ui.mergemarkertemplate` to `command-templates.mergemarker`,
+   `ui.pre-merge-tool-output-template` to
+   `command-templates.pre-merge-tool-output`.
+
+ * There is a new set of config options for the template used for the
+   one-line commit summary displayed by various commands, such as `hg
+   rebase`. The main one is `command-templates.oneline-summary`. That
+   can be overridden per command with
+   `command-templates.oneline-summary.<command>`, where `<command>`
+   can be e.g. `rebase`. As part of this effort, the default format
+   from `hg rebase` was reorganized a bit.
 
 
  * `hg strip`, from the strip extension, is now a core command, `hg