First pieces of generic templating support
Matt Mackall
mpm at selenic.com
Tue Feb 21 08:25:21 UTC 2012
On Tue, 2012-02-21 at 09:22 +0100, Dirkjan Ochtman wrote:
> On Mon, Feb 20, 2012 at 23:59, Matt Mackall <mpm at selenic.com> wrote:
> > $ hg st --config ui.formatdebug=1
> > status = {
> > {'status': '?', 'char': 'branches.txt'},
> > {'status': '?', 'char': 'hgext/clonecache.py'},
> > {'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).
This particular debug format is actually intended to be.. nothing in
particular. Any similarity to JSON is coincidental.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list