templater: look for mapfiles in template paths
This will allow %include statements to search the default template
paths in addition to the directory where the %including file is.
--- a/mercurial/templater.py Fri May 15 09:04:32 2015 -0400
+++ b/mercurial/templater.py Fri May 15 09:07:27 2015 -0400
@@ -743,7 +743,7 @@
raise util.Abort(_("style '%s' not found") % mapfile,
hint=_("available styles: %s") % stylelist())
- conf = config.config()
+ conf = config.config(includepaths=templatepaths())
conf.read(mapfile)
for key, val in conf[''].items():