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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sat Feb 27 09:31:59 EST 2016



On 02/20/2016 11:09 AM, Yuya Nishihara wrote:
> # 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}"}'.

This seems reasonable, the test update make a lot of sense and this have 
been on the list for a week.

I've pushed it to the clowncopter. Thanks.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list