[PATCH 3 of 3] templatekw: switch ctx of list expression to rev of {parents} (BC)

Sean Farley sean at farley.io
Sun Feb 21 01:57:37 EST 2016


Yuya Nishihara <yuya at tcha.org> writes:

> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1455272169 -32400
> #      Fri Feb 12 19:16:09 2016 +0900
> # Node ID 21b29d0fe625b13a4eaf5b69fc92f5ee505c92e0
> # Parent  734094ea47c56da70c0d22d81cceba968f9b260f
> templatekw: switch ctx of list expression to rev of {parents} (BC)
>
> This is the same semantics as revset() introduced at e4609ec959f8. Before
> this patch, {parents} provided nothing useful in new-style template. For
> example, '{parents % "{parent}"}' generated cryptic string like
> "rev12345node0123abcdef...".
>
> This patch drops {parent} variable since it was useless. We can get a revision
> number by '{parents % "{rev}"}'.

I like making things uniform so I'm fine with this series. Though, I
have a feeling the template engine needs more love, in general.


More information about the Mercurial-devel mailing list