Mercurial > hg
comparison mercurial/commands.py @ 45765:ed84a4d48910
config: add a new [command-templates] section for templates defined by hg
The existing `[templates]` section lets the user define their own keys
and then refer to them on the command line with `-T`. There are many
cases where hg wants to use a user-defined template with a given name,
such as `ui.logtemplate` and `ui.mergemarkertemplate`. This patch
starts moving such configs in a common section by moving
`ui.logtemplate` to `command-templates.log` (with an alias from the
old name, of course).
Differential Revision: https://phab.mercurial-scm.org/D9245
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 23 Oct 2020 10:56:18 -0700 |
parents | 94f681b84c70 |
children | 450e17e59603 |
comparison
equal
deleted
inserted
replaced
45756:79d681753c4d | 45765:ed84a4d48910 |
---|---|
4564 See :hg:`help revisions` for more about specifying and ordering | 4564 See :hg:`help revisions` for more about specifying and ordering |
4565 revisions. | 4565 revisions. |
4566 | 4566 |
4567 See :hg:`help templates` for more about pre-packaged styles and | 4567 See :hg:`help templates` for more about pre-packaged styles and |
4568 specifying custom templates. The default template used by the log | 4568 specifying custom templates. The default template used by the log |
4569 command can be customized via the ``ui.logtemplate`` configuration | 4569 command can be customized via the ``command-templates.log`` configuration |
4570 setting. | 4570 setting. |
4571 | 4571 |
4572 Returns 0 on success. | 4572 Returns 0 on success. |
4573 | 4573 |
4574 """ | 4574 """ |