Page MenuHomePhabricator

config: add a new [command-templates] section for templates defined by hg

Authored by martinvonz on Oct 23 2020, 2:28 PM.



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).

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Oct 23 2020, 2:28 PM
martinvonz updated this revision to Diff 23300.Oct 23 2020, 4:29 PM
martinvonz edited the summary of this revision. (Show Details)Oct 23 2020, 4:39 PM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.