hgbook: chapter on templates
mpm at selenic.com
Tue Jul 19 18:02:26 EDT 2016
On Tue, 2016-07-19 at 17:51 -0400, Augie Fackler wrote:
> On Tue, Jul 19, 2016 at 5:37 PM, Matt Mackall <mpm at selenic.com> wrote:
> > On Mon, 2016-07-18 at 17:58 +0200, Mathias De Maré wrote:
> > >
> > > Hello all,
> > >
> > > it's been quite a while since I sent around another chapter. I'm afraid I
> > > had other topics to focus on.
> > > I've reworked the chapter 'Customizing the output of Mercurial' to discuss
> > > templates (rather than the old '--style' option).
> > Other things to mention:
> > - the -T option
> I thought this (and the JSON output) were remaining an open secret
> until we could make the output more consistent between commands?
$ hg log -h | grep -- -T
-T --template TEMPLATE display with template
$ hg status -h | grep -- -T
All the functionality that used to be available with --style got unified into --
template and -T was added as a shorthand everywhere we used to have --template.
-T also exists for lots of other commands, but because it's marked
"(experimental)", it doesn't show up in help.
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel