# HG changeset patch # User Yuya Nishihara # Date 1529139397 -32400 # Node ID cf59de8028832768ad62d66d1339c7bafe7d9eb8 # Parent ae3f17a87b2887b2e239a253bc488c691c59121b py3: remove b'' from error message of disallowed filename diff -r ae3f17a87b28 -r cf59de802883 contrib/python3-whitelist --- a/contrib/python3-whitelist Sat Jun 16 17:54:29 2018 +0900 +++ b/contrib/python3-whitelist Sat Jun 16 17:56:37 2018 +0900 @@ -127,6 +127,7 @@ test-eol-tag.t test-eol-update.t test-eol.t +test-eolfilename.t test-excessive-merge.t test-exchange-obsmarkers-case-A1.t test-exchange-obsmarkers-case-A2.t 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 diff -r ae3f17a87b28 -r cf59de802883 mercurial/scmutil.py --- a/mercurial/scmutil.py Sat Jun 16 17:54:29 2018 +0900 +++ b/mercurial/scmutil.py Sat Jun 16 17:56:37 2018 +0900 @@ -287,7 +287,8 @@ def checkfilename(f): '''Check that the filename f is an acceptable filename for a tracked file''' if '\r' in f or '\n' in f: - raise error.Abort(_("'\\n' and '\\r' disallowed in filenames: %r") % f) + raise error.Abort(_("'\\n' and '\\r' disallowed in filenames: %r") + % pycompat.bytestr(f)) def checkportable(ui, f): '''Check if filename f is portable and warn or abort depending on config'''