[PATCH] templatekw: add singular names to refer list element in map expression

Augie Fackler raf at durin42.com
Wed Aug 16 14:36:25 EDT 2017


On Sat, Aug 12, 2017 at 11:38:00PM +0900, Yuya Nishihara wrote:
> On Sat, 12 Aug 2017 23:07:25 +0900, FUJIWARA Katsunori wrote:
> > # HG changeset patch
> > # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> > # Date 1502546625 -32400
> > #      Sat Aug 12 23:03:45 2017 +0900
> > # Node ID 9a4194f1f4481c5b7983e31aeda9033c98d0a0fb
> > # Parent  db6b666ce1e6c6fd26f6fb07c00fe0e3b18a081d
> > # Available At https://bitbucket.org/foozy/mercurial-wip
> > #              hg pull https://bitbucket.org/foozy/mercurial-wip -r 9a4194f1f448
> > # EXP-Topic templatekw-mapping-obselements
> > templatekw: add singular names to refer list element in map expression
> >
> > Before this patch, each element values for "predecessors" and
> > "successorset" (referring elements in "successorssets") template
> > keyword can't be referred by singular or such kind of name in map
> > expression.
> >
> > This feature seems important for similarity to other listing template
> > keywords (e.g. "child" refers elements in "children"), even though
> > this referring feature is just implied in example of help document.
>
> "{node}" should work. I'm not so enthusiastic to support plural/singular pairs
> unless they are intuitive.

Agreed, trying to handle plural-singluar mappings seems more
complicated than it's worth.

> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list