Mercurial > hg
comparison tests/test-treediscovery.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 | b4b7427b5786 |
children | 122f0b59f5f0 |
comparison
equal
deleted
inserted
replaced
45756:79d681753c4d | 45765:ed84a4d48910 |
---|---|
1 Tests discovery against servers without getbundle support: | 1 Tests discovery against servers without getbundle support: |
2 | 2 |
3 $ CAP="getbundle bundle2" | 3 $ CAP="getbundle bundle2" |
4 $ . "$TESTDIR/notcapable" | 4 $ . "$TESTDIR/notcapable" |
5 $ cat >> $HGRCPATH <<EOF | 5 $ cat >> $HGRCPATH <<EOF |
6 > [ui] | 6 > [command-templates] |
7 > logtemplate="{rev} {node|short}: {desc} {branches}\n" | 7 > log="{rev} {node|short}: {desc} {branches}\n" |
8 > EOF | 8 > EOF |
9 | 9 |
10 Setup HTTP server control: | 10 Setup HTTP server control: |
11 | 11 |
12 $ remote=http://localhost:$HGPORT/ | 12 $ remote=http://localhost:$HGPORT/ |