mercurial/templater.py
changeset 25096 081b08e4ea13
parent 25003 5e584edbb211
child 25489 ef8956aa8755
equal deleted inserted replaced
25095:3182965b3971 25096:081b08e4ea13
   741             return
   741             return
   742         if not os.path.exists(mapfile):
   742         if not os.path.exists(mapfile):
   743             raise util.Abort(_("style '%s' not found") % mapfile,
   743             raise util.Abort(_("style '%s' not found") % mapfile,
   744                              hint=_("available styles: %s") % stylelist())
   744                              hint=_("available styles: %s") % stylelist())
   745 
   745 
   746         conf = config.config()
   746         conf = config.config(includepaths=templatepaths())
   747         conf.read(mapfile)
   747         conf.read(mapfile)
   748 
   748 
   749         for key, val in conf[''].items():
   749         for key, val in conf[''].items():
   750             if not val:
   750             if not val:
   751                 raise SyntaxError(_('%s: missing value') % conf.source('', key))
   751                 raise SyntaxError(_('%s: missing value') % conf.source('', key))