[PATCH 1 of 2 resend] templater: add inheritance support to style maps

Matt Mackall mpm at selenic.com
Fri Aug 19 12:56:29 EDT 2016


On Fri, 2016-08-19 at 23:37 +0900, Yuya Nishihara wrote:
> +        elif key == "__base__":
> > +            # treat as a pointer to a base class for this style
> > +            path = util.normpath(os.path.join(base, val))
> > +            bcache, btmap = _readmapfile(path)
> Do we want to make __base__ look for templatepaths?

Yes, that seems very useful.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list