Mercurial > public > mercurial-scm > hg-stable
diff tests/test-convert-svn-encoding.t @ 44814:75b59d221aa3 stable
py3: pass native string to urlreq.url2pathname()
Of course, I?m not happy with the warning, but it?s better than crashing.
Solving the problem properly is hard, and non-UTF-8 percent-encoded bytes in
file URLs seem rare enough to block solving that all file URLs (even if not
SVN-specific) will cause a crash.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Tue, 16 Jun 2020 14:00:20 +0200 |
parents | a915db9a5e77 |
children | 697212a830fb |
line wrap: on
line diff
--- a/tests/test-convert-svn-encoding.t Tue Jun 16 12:59:45 2020 +0200 +++ b/tests/test-convert-svn-encoding.t Tue Jun 16 14:00:20 2020 +0200 @@ -152,3 +152,23 @@ f7e66f98380ed1e53a797c5c7a7a2616a7ab377d branch\xc3\xa9 (esc) $ cd .. + +#if py3 +For now, on Python 3, we abort when encountering non-UTF-8 percent-encoded +bytes in a filename. + + $ hg convert file:///%ff test + initializing destination test repository + on Python 3, we currently do not support non-UTF-8 percent-encoded bytes in file URLs for Subversion repositories + file:///%ff does not look like a CVS checkout + $TESTTMP/file:/%ff does not look like a Git repository + file:///%ff does not look like a Subversion repository + file:///%ff is not a local Mercurial repository + file:///%ff does not look like a darcs repository + file:///%ff does not look like a monotone repository + file:///%ff does not look like a GNU Arch repository + file:///%ff does not look like a Bazaar repository + file:///%ff does not look like a P4 repository + abort: file:///%ff: missing or unsupported repository + [255] +#endif