diff -r bd0f122f3f51 -r 697212a830fb tests/test-convert-svn-encoding.t --- a/tests/test-convert-svn-encoding.t Mon Jun 29 02:05:12 2020 +0200 +++ b/tests/test-convert-svn-encoding.t Tue Jun 30 04:55:52 2020 +0200 @@ -153,6 +153,16 @@ $ cd .. +Subversion sources don't support non-ASCII characters in HTTP(S) URLs. + + $ XFF=$($PYTHON -c 'from mercurial.utils.procutil import stdout; stdout.write(b"\xff")') + $ hg convert --source-type=svn http://localhost:$HGPORT/$XFF test + initializing destination test repository + Subversion sources don't support non-ASCII characters in HTTP(S) URLs. Please percent-encode them. + http://localhost:$HGPORT/\xff does not look like a Subversion repository (esc) + abort: http://localhost:$HGPORT/\xff: missing or unsupported repository (esc) + [255] + #if py3 For now, on Python 3, we abort when encountering non-UTF-8 percent-encoded bytes in a filename.