mercurial/cmdutil.py
changeset 16699 d947e1da1259
parent 16687 e34106fa0dc3
parent 16678 48b1674ac1e7
child 16701 34c30506dd4e
equal deleted inserted replaced
16698:26756d9d8143 16699:d947e1da1259
   908 
   908 
   909     # ui settings
   909     # ui settings
   910     if not (tmpl or style):
   910     if not (tmpl or style):
   911         tmpl = ui.config('ui', 'logtemplate')
   911         tmpl = ui.config('ui', 'logtemplate')
   912         if tmpl:
   912         if tmpl:
   913             tmpl = templater.parsestring(tmpl)
   913             try:
       
   914                 tmpl = templater.parsestring(tmpl)
       
   915             except SyntaxError:
       
   916                 tmpl = templater.parsestring(tmpl, quoted=False)
   914         else:
   917         else:
   915             style = util.expandpath(ui.config('ui', 'style', ''))
   918             style = util.expandpath(ui.config('ui', 'style', ''))
   916 
   919 
   917     if not (tmpl or style):
   920     if not (tmpl or style):
   918         return changeset_printer(ui, repo, patch, opts, buffered)
   921         return changeset_printer(ui, repo, patch, opts, buffered)