comparison tests/test-amend.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 6ba7190ff863
children 8d72e29ad1e0
comparison
equal deleted inserted replaced
45756:79d681753c4d 45765:ed84a4d48910
401 > EOF 401 > EOF
402 402
403 $ hg init $TESTTMP/repo5 403 $ hg init $TESTTMP/repo5
404 $ cd $TESTTMP/repo5 404 $ cd $TESTTMP/repo5
405 $ cat <<'EOF' >> .hg/hgrc 405 $ cat <<'EOF' >> .hg/hgrc
406 > [ui] 406 > [command-templates]
407 > logtemplate = 'user: {user} 407 > log = 'user: {user}
408 > date: {date|date} 408 > date: {date|date}
409 > summary: {desc|firstline}\n' 409 > summary: {desc|firstline}\n'
410 > EOF 410 > EOF
411 411
412 $ echo a>a 412 $ echo a>a
413 $ hg ci -Am 'commit 1' 413 $ hg ci -Am 'commit 1'
414 adding a 414 adding a