Mercurial > hg
comparison tests/test-glog.t @ 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 | 34a46d48d24e |
children | 1f7c077e0640 |
comparison
equal
deleted
inserted
replaced
45756:79d681753c4d | 45765:ed84a4d48910 |
---|---|
3418 Multiple roots (issue5440): | 3418 Multiple roots (issue5440): |
3419 | 3419 |
3420 $ hg init multiroots | 3420 $ hg init multiroots |
3421 $ cd multiroots | 3421 $ cd multiroots |
3422 $ cat <<EOF > .hg/hgrc | 3422 $ cat <<EOF > .hg/hgrc |
3423 > [ui] | 3423 > [command-templates] |
3424 > logtemplate = '{rev} {desc}\n\n' | 3424 > log = '{rev} {desc}\n\n' |
3425 > EOF | 3425 > EOF |
3426 | 3426 |
3427 $ touch foo | 3427 $ touch foo |
3428 $ hg ci -Aqm foo | 3428 $ hg ci -Aqm foo |
3429 $ hg co -q null | 3429 $ hg co -q null |