<div dir="ltr"><div><br><br><div class="gmail_quote">On Tue, Jul 19, 2016 at 10:04 PM, Augie Fackler <span dir="ltr"><<a target="_blank" href="mailto:raf@durin42.com">raf@durin42.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div class="gmail-HOEnZb"><div class="gmail-h5">On Tue, Jul 19, 2016 at 2:29 PM, Sean Farley <<a href="mailto:sean@farley.io">sean@farley.io</a>> wrote:<br><br>
> Ah, this is very nice! Thanks for the work!<br>
<br>
</div></div>Indeed! I even cleaned up my own custom templates a little thanks to<br>
reading through this.<br>
</blockquote></div><br><br>Glad to hear the enthousiasm :)<br></div>A lot of it is modified from the original '--style' description Bryan gave, so he deserves most of the credit.<br><div><br><div><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 19, 2016 at 11:37 PM, Matt Mackall <span dir="ltr"><<a target="_blank" href="mailto:mpm@selenic.com">mpm@selenic.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span>On Mon, 2016-07-18 at 17:58 +0200, Mathias De Maré wrote:<br>
> Hello all,<br>
><br>
> it's been quite a while since I sent around another chapter. I'm afraid I<br>
> had other topics to focus on.<br>
> I've reworked the chapter 'Customizing the output of Mercurial' to discuss<br>
> templates (rather than the old '--style' option).<br>
<br>
</span>Other things to mention:<br>
<br>
- the -T option<br>
- the [templates] section (simplifies many of your templatealias examples)<br></blockquote><div>Oh, good point. It also seems that this feature is not yet in the help, so I'll try to add it there as well. <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
- using a path to a template file<br></blockquote><div>Do you mean using '%include'?<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
- adding files to the template path<br></blockquote><div> I'm not quite sure what you mean here. Is this about the use of the 'templates' directory relative to the 'hg' binary? I had to look this up in the templater.py code, so it seems quite well hidden.<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
- multi-line assignments and quoting in config files<br>
- hg debugcolor<br>
<br>
Things that are just about official and long-deployed:<br>
<br>
- generic templating of most of the other display commands<br>
- the generic JSON and XML styles<br>
- using -T json for discovery<br>
- how to assign different templates with the same name to different commands<br></blockquote><div>Good idea. Just found out about this last one :-)<br><br></div><div>Thanks for the good suggestions, I'll look into these next!<br><br></div><div>Greetings,<br></div><div>Mathias <br></div><br></div></div></div></div></div>