changeset 38083 | 5f2dc1b71cf1 |
parent 37257 | f290f130d7fc |
child 38325 | 5cb39a368c80 |
--- a/mercurial/fileset.py Sat May 19 18:47:20 2018 +0530 +++ b/mercurial/fileset.py Sat May 19 18:48:26 2018 +0530 @@ -354,7 +354,8 @@ # i18n: "grep" is a keyword r = re.compile(getstring(x, _("grep requires a pattern"))) except re.error as e: - raise error.ParseError(_('invalid match pattern: %s') % e) + raise error.ParseError(_('invalid match pattern: %s') % + stringutil.forcebytestr(e)) return [f for f in mctx.existing() if r.search(mctx.ctx[f].data())] def _sizetomax(s):