mercurial/formatter.py
changeset 28630 bf35644b9f3a
parent 28384 3356bf61fa25
child 28954 f97a0bcfd7a1
equal deleted inserted replaced
28629:d6f8a1535224 28630:bf35644b9f3a
   169             return None, mapname
   169             return None, mapname
   170 
   170 
   171     # perhaps it's a reference to [templates]
   171     # perhaps it's a reference to [templates]
   172     t = ui.config('templates', tmpl)
   172     t = ui.config('templates', tmpl)
   173     if t:
   173     if t:
   174         try:
   174         return templater.unquotestring(t), None
   175             tmpl = templater.unquotestring(t)
       
   176         except SyntaxError:
       
   177             tmpl = t
       
   178         return tmpl, None
       
   179 
   175 
   180     if tmpl == 'list':
   176     if tmpl == 'list':
   181         ui.write(_("available styles: %s\n") % templater.stylelist())
   177         ui.write(_("available styles: %s\n") % templater.stylelist())
   182         raise error.Abort(_("specify a template"))
   178         raise error.Abort(_("specify a template"))
   183 
   179