Template style map - children keyword

Matt Mackall mpm at selenic.com
Mon Apr 16 19:11:28 UTC 2012


On Sat, 2012-03-31 at 15:21 +1100, Tim Vernum wrote:
> I've noticed that the 'children' keyword in a style map is set to have a 
> fixed string output of (the equivalent of)
> 
>      {rev}:{node|short}
> 
> See templatekw.py : showchildren()
> 
> Is it intentional that this output cannot be customised in a style map 
> file (as opposed to 'parents' which can be customised) ?

Intentional: no. Hard to change at this date: yes.

> My python skills aren't great, but I'm happy to try and put together a 
> patch if it's likely to be accepted.

What would be required is for showchildren to return a polymorphic
object: one that behaves as it currently does when treated as a string
to preserve the current behavior,  but behaves like a dict otherwise.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list