comparison tests/test-rebase-obsolete.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 4532e7ebde4d
children f90a5c211251
comparison
equal deleted inserted replaced
45756:79d681753c4d 45765:ed84a4d48910
3 ========================== 3 ==========================
4 4
5 Enable obsolete 5 Enable obsolete
6 6
7 $ cat >> $HGRCPATH << EOF 7 $ cat >> $HGRCPATH << EOF
8 > [ui] 8 > [command-templates]
9 > logtemplate= {rev}:{node|short} {desc|firstline}{if(obsolete,' ({obsfate})')} 9 > log= {rev}:{node|short} {desc|firstline}{if(obsolete,' ({obsfate})')}
10 > [experimental] 10 > [experimental]
11 > evolution.createmarkers=True 11 > evolution.createmarkers=True
12 > evolution.allowunstable=True 12 > evolution.allowunstable=True
13 > [phases] 13 > [phases]
14 > publish=False 14 > publish=False