--template get() seems to be broken in Hg v3.3.2 and other versions
Lawrence Stewart
lstewart at room52.net
Wed May 13 04:58:33 UTC 2015
On 05/13/15 13:42, Matt Mackall wrote:
> On Wed, 2015-05-13 at 12:15 +1000, Lawrence Stewart wrote:
>> Hi all,
>>
>> Pretty sure this used to work. Broken for others too or am I doing
>> something daft?
>>
>>> hg --version | head -1
>> Mercurial Distributed SCM (version 3.3.2)
>>
>>> hg log -r . --template "{get(extras, 'source')}\n"
>> hg: parse error: get() expects a dict as first argument
>>
>> Someone tested for me on v2.9.1 where it is similarly broken, and
>> another person on v3.4 and claims it works there, though I don't see any
>> mention in the v3.3.3 or v3.4 changelog that this issue was explicitly
>> fixed, which makes me wonder what's going on.
>
> Does not appear to work in any release before 3.4, which had this fix:
>
> changeset: 26921:e7baf88c29c3
> user: Yuya Nishihara <yuya at tcha.org>
> date: Wed Feb 18 23:17:52 2015 +0900
> summary: templatekw: forward _hybrid.get to raw values so that
> get(extras, key) works
>
Ah ha, thanks. Thinking it worked previously was all in my head then...
time to update my packages.
Cheers,
Lawrence
More information about the Mercurial
mailing list