On Mon, 10 Apr 2017 10:48:16 +0100, Ryan McElroy wrote:
> On 4/8/17 2:06 PM, Yuya Nishihara wrote:
> > # HG changeset patch
> > # User Yuya Nishihara <y...@tcha.org>
> > # Date 1491225832 -32400
> > #      Mon Apr 03 22:23:52 2017 +0900
> > # Node ID 4519938b18da898cb116a3fea0d1ecee604266c0
> > # Parent  05be4b2679b557c9fc8711d9b258e3667cec0b88
> > templater: port pad() to take keyword arguments

> > +  $ hg debugtemplate '{pad("foo", width=10, left=true)}\n'
> > +         foo
> > +
> 
> This is super cool!

Thanks. Future patches will add {dict(key=value)|json} and {dict(key)|json}
as a shorthand for {dict(key=key)|json}.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to