diff -r ae3f17a87b28 -r cf59de802883 mercurial/manifest.py --- a/mercurial/manifest.py Sat Jun 16 17:54:29 2018 +0900 +++ b/mercurial/manifest.py Sat Jun 16 17:56:37 2018 +0900 @@ -20,6 +20,7 @@ error, mdiff, policy, + pycompat, revlog, util, ) @@ -635,7 +636,8 @@ for f in l: if '\n' in f or '\r' in f: raise error.RevlogError( - _("'\\n' and '\\r' disallowed in filenames: %r") % f) + _("'\\n' and '\\r' disallowed in filenames: %r") + % pycompat.bytestr(f)) # apply the changes collected during the bisect loop to our addlist