Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 28630:bf35644b9f3a
templater: relax unquotestring() to fall back to bare string
This is convenient for our use case where quotes are optional except in
a map file.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 26 Mar 2016 18:12:12 +0900 |
parents | ed1d90f6e921 |
children | 44319097e7b9 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sat Mar 26 19:01:12 2016 +0900 +++ b/mercurial/cmdutil.py Sat Mar 26 18:12:12 2016 +0900 @@ -1542,11 +1542,7 @@ if not tmpl and not style: # template are stronger than style tmpl = ui.config('ui', 'logtemplate') if tmpl: - try: - tmpl = templater.unquotestring(tmpl) - except SyntaxError: - pass - return tmpl, None + return templater.unquotestring(tmpl), None else: style = util.expandpath(ui.config('ui', 'style', ''))