--template get() seems to be broken in Hg v3.3.2 and other versions

Lawrence Stewart lstewart at room52.net
Wed May 13 02:15:20 UTC 2015


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.

Cheers,
Lawrence


More information about the Mercurial mailing list