Template keyword for all "names"

Yuya Nishihara yuya at tcha.org
Thu Jan 14 09:29:55 CST 2016


On Tue, 12 Jan 2016 11:24:01 -0500, timeless wrote:
> Not a strong preference, but (a) seems to be the easiest for me to
> reason through.

and (a) reflects the data structure. I'll go this way.

> > Which is preferred?
> >
> >  a) dict of list: '{namespaces % "{namespace}: {names % "{name} "}\n"}\n'
> >  b) flat list of (name, namespace): '{names % "{name} ({namespace})\n"}\n'
> >  c) flat set of names with list of namespaces:
> >     '{names % "{name} ({join(namespaces, ", ")})\n"}'
> >
> > (b) won't be used as "{ifcontains(x, names, ...)}" because {names} can't be
> > a dict.


More information about the Mercurial-devel mailing list