Mercurial > hg-stable
changeset 26233:d3dbb65c8dc6
fileset: handle error of string unescaping
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 10 Sep 2015 23:32:36 +0900 |
parents | 43f9976346e9 |
children | e4609ec959f8 |
files | mercurial/fileset.py tests/test-fileset.t |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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