Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 24988:e8ff0b09acac
templater: rename parsestring() to unquotestring() (API)
Since db7463aa080f, it doesn't parse string escapes.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 04 May 2015 10:03:13 +0900 |
parents | fd7287f0b43c |
children | 4169a4f83548 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon May 04 10:01:03 2015 +0900 +++ b/mercurial/cmdutil.py Mon May 04 10:03:13 2015 +0900 @@ -1443,7 +1443,7 @@ tmpl = ui.config('ui', 'logtemplate') if tmpl: try: - tmpl = templater.parsestring(tmpl) + tmpl = templater.unquotestring(tmpl) except SyntaxError: pass return tmpl, None @@ -1477,7 +1477,7 @@ t = ui.config('templates', tmpl) if t: try: - tmpl = templater.parsestring(t) + tmpl = templater.unquotestring(t) except SyntaxError: tmpl = t return tmpl, None