git-svn: apply "svn.pathnameencoding" before URL encoding
authorKazutoshi Satoda <k_satoda@f2.dion.ne.jp>
Mon, 8 Feb 2016 15:21:02 +0000 (00:21 +0900)
committerEric Wong <normalperson@yhbt.net>
Mon, 22 Feb 2016 02:29:36 +0000 (02:29 +0000)
commit1b42f45255de5844b7fe8d0c60fea74cd5b9f954
tree20547e8eaa53f091b31e93e6de03a1b8f08426e8
parent40f47448a91666be8e2befe521525f3f507344f9
git-svn: apply "svn.pathnameencoding" before URL encoding

The conversion from "svn.pathnameencoding" to UTF-8 should be applied
first, and then URL encoding should be applied on the resulting UTF-8
path. The reversed order of these transforms (used before this fix)
makes non-UTF-8 URL which causes error from Subversion such as
"Filesystem has no item: '...' path not found" when sending a rename (or
a copy) from non-ASCII path.

[ew: t9115 test case added (requires SVN_HTTPD_PORT set to test),
 squash LC_ALL=$a_utf8_locale export from Kazutoshi for Cygwin]

Signed-off-by: Kazutoshi SATODA <k_satoda@f2.dion.ne.jp>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
perl/Git/SVN/Editor.pm
t/t9115-git-svn-dcommit-funky-renames.sh