comparison tests/test-bundle2-multiple-changegroups.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 d7304434390f
children 2bb2a1ff4d8f
comparison
equal deleted inserted replaced
45756:79d681753c4d 45765:ed84a4d48910
32 > exchange.pull = _pull 32 > exchange.pull = _pull
33 > exchange.getbundle2partsmapping[b'changegroup'] = _getbundlechangegrouppart 33 > exchange.getbundle2partsmapping[b'changegroup'] = _getbundlechangegrouppart
34 > EOF 34 > EOF
35 35
36 $ cat >> $HGRCPATH << EOF 36 $ cat >> $HGRCPATH << EOF
37 > [ui] 37 > [command-templates]
38 > logtemplate={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline} 38 > log={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline}
39 > EOF 39 > EOF
40 40
41 Start with a simple repository with a single commit 41 Start with a simple repository with a single commit
42 42
43 $ hg init repo 43 $ hg init repo