Writing a template which displays only relevant parents
Yuya Nishihara
yuya at tcha.org
Thu Feb 11 06:05:42 UTC 2016
On Tue, 9 Feb 2016 19:54:52 +0100, Dr Rainer Woitok wrote:
> On Tuesday, 2016-02-09 00:32:27 +0900, you wrote:
>
> > ...
> > It worked for me:
> >
> > [ui]
> > logtemplate = rev: {
> > rev
> > } node: {short(
> > node)}\n
>
> Well, your example works for me, too. Experimenting a little further
> with my failed attempts to break my "log" template into multiple lines,
> I found that you can only break the template into multiple lines, if it
> either does not contain any escaped quotes, or if the whole template
> definition is included in quotes. If the multiple line template is not
> a string, neither `\"´ nor `\'´ are accepted, while `\n´ is. Is this
> the way it should work?
Can you provide an example that doesn't work? I've tried one that contains
\", but it seems working.
logtemplate = {"foo\"
"}\n
Also, you can use "hg config ui.logtemplate" to see how ui.logtemplate is
parsed as a config value.
> > {"{"{rev}"}"} is fully valid since Mercurial 3.5.
>
> That's perhaps a little bit surprising at first glance and should thus
> be pointed out more clearly in the documentation.
Yep.
More information about the Mercurial
mailing list