mercurial/templater.py
changeset 24988 e8ff0b09acac
parent 24987 fd7287f0b43c
child 25001 9668c1a433b3
--- a/mercurial/templater.py	Mon May 04 10:01:03 2015 +0900
+++ b/mercurial/templater.py	Mon May 04 10:03:13 2015 +0900
@@ -618,7 +618,7 @@
                 for j in _flatten(i):
                     yield j
 
-def parsestring(s):
+def unquotestring(s):
     '''unwrap quotes'''
     if len(s) < 2 or s[0] != s[-1]:
         raise SyntaxError(_('unmatched quotes'))
@@ -728,7 +728,7 @@
                 raise SyntaxError(_('%s: missing value') % conf.source('', key))
             if val[0] in "'\"":
                 try:
-                    self.cache[key] = parsestring(val)
+                    self.cache[key] = unquotestring(val)
                 except SyntaxError, inst:
                     raise SyntaxError('%s: %s' %
                                       (conf.source('', key), inst.args[0]))