[PATCH 7 of 7] templater: handle exception when applying map operator to non-iterable object

Sean Farley sean at farley.io
Fri Mar 4 14:06:30 EST 2016


Yuya Nishihara <yuya at tcha.org> writes:

> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1455425926 -32400
> #      Sun Feb 14 13:58:46 2016 +0900
> # Node ID 8e6ed4f20dbb321b06c974560bfd2f88eb369e26
> # Parent  c5d854264cf4c299b3b85250809b788459a1faed
> templater: handle exception when applying map operator to non-iterable object
>
> Before this, "{noniterable % template}" raised an exception. This tries to
> provide a better indication for the common case, where a left-hand-side
> expression is a keyword.

This series looks really great. I really like the tidying up of the arg
type errors. Thanks!


More information about the Mercurial-devel mailing list