[PATCH 2 of 2] templates: make divergentnodes in whyunstable keyword be a mappinglist too (RFC)
Anton Shestakov
av6 at dwimlabs.net
Sat Apr 14 08:40:53 EDT 2018
On Sat, 14 Apr 2018 21:09:46 +0900
Yuya Nishihara <yuya at tcha.org> wrote:
> On Sat, 14 Apr 2018 19:43:16 +0800, Anton Shestakov wrote:
> > # HG changeset patch
> > # User Anton Shestakov <av6 at dwimlabs.net>
> > # Date 1523705764 -28800
> > # Sat Apr 14 19:36:04 2018 +0800
> > # Node ID 6287c68bde7bcdc1dc260da9983ecc7fffc9ee20
> > # Parent 987c05eac1801d0b919c874280d03f9e8cccb411
> > templates: make divergentnodes in whyunstable keyword be a mappinglist too (RFC)
>
> > I'd like this to work, but it doesn't: "{divergentnodes}" show a178212c3433 as
> > the divergent node, and not 70d5a63ca112 (so the whole test case fails).
>
> > for entry in entries:
> > if entry.get('divergentnodes'):
> > - dnodes = entry['divergentnodes']
> > - entry['divergentnodes'] = ''.join(formatnode(dnode)
> > - for dnode in dnodes)
> > + dnodes = [{ctx: dnode} for dnode in entry['divergentnodes']]
> ^^^
> 'ctx':
Ah. Yep, that was it.
More information about the Mercurial-devel
mailing list