##// END OF EJS Templates
fileset: handle error of string unescaping
Yuya Nishihara -
r26233:d3dbb65c default
parent child Browse files
Show More
@@ -54,7 +54,7 b' def tokenize(program):'
54 c = program[pos]
54 c = program[pos]
55 decode = lambda x: x
55 decode = lambda x: x
56 else:
56 else:
57 decode = lambda x: x.decode('string-escape')
57 decode = parser.unescapestr
58 pos += 1
58 pos += 1
59 s = pos
59 s = pos
60 while pos < l: # find closing quote
60 while pos < l: # find closing quote
@@ -49,6 +49,9 b' Test operators and basic patterns'
49 $ fileset 'a* - a1'
49 $ fileset 'a* - a1'
50 a2
50 a2
51 $ fileset 'a_b'
51 $ fileset 'a_b'
52 $ fileset '"\xy"'
53 hg: parse error: invalid \x escape
54 [255]
52
55
53 Test files status
56 Test files status
54
57
General Comments 0
You need to be logged in to leave comments. Login now