[PATCH 7 of 7] templater: abstract truth testing to fix {if(list_of_empty_strings)}

Augie Fackler raf at durin42.com
Thu Jun 14 11:16:37 EDT 2018



> On Jun 14, 2018, at 07:15, Yuya Nishihara <yuya at tcha.org> wrote:
> 
> On Wed, 13 Jun 2018 17:21:00 -0400, Augie Fackler wrote:
>> 
>> 
>>> On Jun 12, 2018, at 17:24, Augie Fackler <raf at durin42.com> wrote:
>>> 
>>> On Tue, Jun 12, 2018 at 11:49:09PM +0900, Yuya Nishihara wrote:
>>>> # HG changeset patch
>>>> # User Yuya Nishihara <yuya at tcha.org>
>>>> # Date 1528518887 -32400
>>>> #      Sat Jun 09 13:34:47 2018 +0900
>>>> # Node ID 4eb2c19f741f50389c3de234654510deede597e2
>>>> # Parent  0bf2bc3ec4f89f4a847b68d00011968732aacd7a
>>>> templater: abstract truth testing to fix {if(list_of_empty_strings)}
>>> 
>>> queued, thanks
>> 
>> I'm confused: this appears to have regressed test-obsmarker-template.t on Python 3. I'll try and take a look, but if anyone sees anything obvious please let me know.
> 
> It's bool(map(...)). I'll send a fix shortly.

Sigh, it's going to take getting used to, map() being a generator. Thanks for the fix!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20180614/14fcee9b/attachment.html>


More information about the Mercurial-devel mailing list