comparison mercurial/cmdutil.py @ 16699:d947e1da1259

merge with stable
author Matt Mackall <mpm@selenic.com>
date Sun, 13 May 2012 12:52:24 +0200
parents e34106fa0dc3 48b1674ac1e7
children 34c30506dd4e
comparison
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)