tests/test-convert-svn-encoding.t
branchstable
changeset 44829 697212a830fb
parent 44814 75b59d221aa3
child 44831 e3b19004087a
--- 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.