[PATCH 2 of 2 STABLE] formatter: handle lists in json output

Yuya Nishihara yuya at tcha.org
Thu Apr 21 10:28:49 EDT 2016


On Thu, 21 Apr 2016 06:09:07 +0000, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1461211019 0
> #      Thu Apr 21 03:56:59 2016 +0000
> # Branch stable
> # Node ID ea574ef953fba7f9c1d6a434267dc10b17972549
> # Parent  24fa6b119f160b3adf25c1018bb322ca4db9b948
> # Available At bb://timeless/mercurial-crew
> #              hg pull bb://timeless/mercurial-crew -r ea574ef953fb
> formatter: handle lists in json output

(issue5217)

> evolve crashes sending lists to _jsonifyobj because encoding.jsonescape
> does not expect lists...

I think that's why "evolve --list" doesn't support the formatter option yet.

These patches might be okay, but I'll have to struggle with the templater
stuff to get confident. Since this problem shouldn't be visible, I'd rather
revisit it after 3.8.

And we'll need tests.


More information about the Mercurial-devel mailing list