On Sat, 14 Apr 2018 20:50:19 +0800, Anton Shestakov wrote:
> On Sat, 14 Apr 2018 21:03:23 +0900
> Yuya Nishihara <y...@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().
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to