On Sat, 14 Apr 2018 21:09:46 +0900
Yuya Nishihara <y...@tcha.org> wrote:

> On Sat, 14 Apr 2018 19:43:16 +0800, Anton Shestakov wrote:
> > # HG changeset patch
> > # User Anton Shestakov <a...@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.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to