changeset 28687 | 29c249dfb4ef |
parent 28630 | bf35644b9f3a |
child 28695 | cc103bd0dbf9 |
--- a/mercurial/templater.py Tue Mar 29 11:50:41 2016 -0700 +++ b/mercurial/templater.py Sun Mar 27 17:42:19 2016 +0900 @@ -868,7 +868,7 @@ def unquotestring(s): '''unwrap quotes if any; otherwise returns unmodified string''' - if len(s) < 2 or s[0] != s[-1]: + if len(s) < 2 or s[0] not in "'\"" or s[0] != s[-1]: return s return s[1:-1]