First pieces of generic templating support

Dirkjan Ochtman dirkjan at
Tue Feb 21 02:22:13 CST 2012

On Mon, Feb 20, 2012 at 23:59, Matt Mackall <mpm at> wrote:
> $ hg st --config ui.formatdebug=1
> status = {
>    {'status': '?', 'char': 'branches.txt'},
>    {'status': '?', 'char': 'hgext/'},
>    {'status': '?', 'char': 'idcheck'},
>    {'status': '?', 'char': 'p'},
>    {'status': '?', 'char': 'status-daemon.txt'},
> }

Be aware that, while this looks like it's valid JSON, JSON technically
doesn't allow the trailing comma in either lists or objects. This is a
big pain for simple templating systems (and the reason I didn't come
up with JSON styles under the previous templating regime).



More information about the Mercurial-devel mailing list