Mercurial > hg
comparison mercurial/configitems.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 | b9d6ab6cdeb4 |
children | 1f7c077e0640 |
comparison
equal
deleted
inserted
replaced
45756:79d681753c4d | 45765:ed84a4d48910 |
---|---|
221 b'color', b'mode', default=b'auto', | 221 b'color', b'mode', default=b'auto', |
222 ) | 222 ) |
223 coreconfigitem( | 223 coreconfigitem( |
224 b'color', b'pagermode', default=dynamicdefault, | 224 b'color', b'pagermode', default=dynamicdefault, |
225 ) | 225 ) |
226 coreconfigitem( | |
227 b'command-templates', b'log', default=None, alias=[(b'ui', b'logtemplate')], | |
228 ) | |
226 _registerdiffopts(section=b'commands', configprefix=b'commit.interactive.') | 229 _registerdiffopts(section=b'commands', configprefix=b'commit.interactive.') |
227 coreconfigitem( | 230 coreconfigitem( |
228 b'commands', b'commit.post-status', default=False, | 231 b'commands', b'commit.post-status', default=False, |
229 ) | 232 ) |
230 coreconfigitem( | 233 coreconfigitem( |
1302 coreconfigitem( | 1305 coreconfigitem( |
1303 b'ui', b'large-file-limit', default=10000000, | 1306 b'ui', b'large-file-limit', default=10000000, |
1304 ) | 1307 ) |
1305 coreconfigitem( | 1308 coreconfigitem( |
1306 b'ui', b'logblockedtimes', default=False, | 1309 b'ui', b'logblockedtimes', default=False, |
1307 ) | |
1308 coreconfigitem( | |
1309 b'ui', b'logtemplate', default=None, | |
1310 ) | 1310 ) |
1311 coreconfigitem( | 1311 coreconfigitem( |
1312 b'ui', b'merge', default=None, | 1312 b'ui', b'merge', default=None, |
1313 ) | 1313 ) |
1314 coreconfigitem( | 1314 coreconfigitem( |