[PATCH 1 of 2] templates: add whyunstable template keyword

Yuya Nishihara yuya at tcha.org
Sat Apr 14 18:26:24 EDT 2018


On Sat, 14 Apr 2018 20:50:19 +0800, Anton Shestakov wrote:
> On Sat, 14 Apr 2018 21:03:23 +0900
> Yuya Nishihara <yuya at tcha.org> wrote:
> > > +    def formatnode(ctx):
> > > +        return ' %s (%s)' % (scmutil.formatchangeid(ctx), ctx.phasestr())  
> > 
> > Nit: leading ' ' isn't nice when you join() the list.
> 
> I was trying to avoid something like '{if(divergentnodes, " ")}', but
> maybe it wouldn't be too bad. I'll come back to this tomorrow.

'{separate(' ', blah, blah, ...)}' could be used instead of if().


More information about the Mercurial-devel mailing list