##// END OF EJS Templates
templater: do not strip non-quote characters from template config...
Yuya Nishihara -
r28687:29c249df default
parent child Browse files
Show More
@@ -868,7 +868,7 b' def _flatten(thing):'
868
868
869 def unquotestring(s):
869 def unquotestring(s):
870 '''unwrap quotes if any; otherwise returns unmodified string'''
870 '''unwrap quotes if any; otherwise returns unmodified string'''
871 if len(s) < 2 or s[0] != s[-1]:
871 if len(s) < 2 or s[0] not in "'\"" or s[0] != s[-1]:
872 return s
872 return s
873 return s[1:-1]
873 return s[1:-1]
874
874
@@ -71,6 +71,8 b' Quoting for ui.logtemplate'
71 8
71 8
72 $ hg tip --config 'ui.logtemplate="{rev}\n"'
72 $ hg tip --config 'ui.logtemplate="{rev}\n"'
73 8
73 8
74 $ hg tip --config 'ui.logtemplate=n{rev}\n'
75 n8
74
76
75 Make sure user/global hgrc does not affect tests
77 Make sure user/global hgrc does not affect tests
76
78
General Comments 0
You need to be logged in to leave comments. Login now