##// END OF EJS Templates
templates: define a {onelinesummary} keyword...
templates: define a {onelinesummary} keyword It is sometimes useful to be able to use the configured `command-template.oneline-summary` in higher-level templates. For example, I would like to use it in an internal template that lists commits in a "review unit" (kind of a pull request). This patch adds support for that. We may want to define a way of formatting a context using a command-specific override (from `command-templates.oneline-summary.<command>`), but that will have to be a template function instead. I don't plan to do that, but I'm mentioning it now in case reviewers would prefer that we use a no-arg function (i.e. `{onelinesummary()}`) already today to prepare for that. Differential Revision: https://phab.mercurial-scm.org/D9314

File last commit:

r46471:a9645620 default
r46472:dbc57472 default
Show More
next
38 lines | 1.2 KiB | text/plain | TextLexer
Martin von Zweigbergk
releasenotes: add a file in which to record release notes...
r42457 == New Features ==
Martin von Zweigbergk
relnotes: document new [command-templates] section...
r46471 * There is a new config section for templates used by hg commands. It
is called `[command-templates]`. Some existing config options have
been deprecated in favor of config options in the new
section. These are: `ui.logtemplate` to `command-templates.log`,
`ui.graphnodetemplate` to `command-templates.graphnode`,
`ui.mergemarkertemplate` to `command-templates.mergemarker`,
`ui.pre-merge-tool-output-template` to
`command-templates.pre-merge-tool-output`.
* There is a new set of config options for the template used for the
one-line commit summary displayed by various commands, such as `hg
rebase`. The main one is `command-templates.oneline-summary`. That
can be overridden per command with
`command-templates.oneline-summary.<command>`, where `<command>`
can be e.g. `rebase`. As part of this effort, the default format
from `hg rebase` was reorganized a bit.
Yuya Nishihara
relnotes: add diffcontains() to new features list
r46343
Manuel Jacob
relnotes: make spacing before new section consistent...
r45762
Valentin Gatien-Baron
strip: move into core...
r46469 * `hg strip`, from the strip extension, is now a core command, `hg
debugstrip`. The extension remains for compatibility.
Martin von Zweigbergk
copy: add experimental support for marking committed copies...
r44847 == New Experimental Features ==
Martin von Zweigbergk
revset: add a revset for parents in merge state...
r44817
Manuel Jacob
relnotes: add release notes for relevant changes I did since the 5.4 release...
r45764
== Bug Fixes ==
Manuel Jacob
relnotes: make spacing before new section consistent...
r45762
Martin von Zweigbergk
releasenotes: add a file in which to record release notes...
r42457 == Backwards Compatibility Changes ==
Manuel Jacob
relnotes: add release notes for relevant changes I did since the 5.4 release...
r45764
Martin von Zweigbergk
debugmergestate: make templated...
r44880
Martin von Zweigbergk
releasenotes: add a file in which to record release notes...
r42457 == Internal API Changes ==
Martin von Zweigbergk
merge: make low-level update() private (API)...
r46134