--- a/mercurial/fileset.py Thu Sep 10 23:29:55 2015 +0900
+++ b/mercurial/fileset.py Thu Sep 10 23:32:36 2015 +0900
@@ -54,7 +54,7 @@
c = program[pos]
decode = lambda x: x
else:
- decode = lambda x: x.decode('string-escape')
+ decode = parser.unescapestr
pos += 1
s = pos
while pos < l: # find closing quote
--- a/tests/test-fileset.t Thu Sep 10 23:29:55 2015 +0900
+++ b/tests/test-fileset.t Thu Sep 10 23:32:36 2015 +0900
@@ -49,6 +49,9 @@
$ fileset 'a* - a1'
a2
$ fileset 'a_b'
+ $ fileset '"\xy"'
+ hg: parse error: invalid \x escape
+ [255]
Test files status