Re: [PATCH] git-svn: don't escape tilde ('~') for http(s) URLs
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:31
Mike Hommey [off-list ref] writes:
On Tue, Oct 21, 2008 at 02:53:28PM -0700, Junio C Hamano wrote:quoted
quoted
quoted
For svn we have: write(5, "<S:update-report send-all=\"true\" xmlns:S=\"svn:\"> <S:src-path>https://sucs.org/~welshbyte/svn/backuptool/trunk</S:src-path>... While git-svn shows: write(7, "<S:update-report send-all=\"true\" xmlns:S=\"svn:\"> <S:src-path>https://sucs.org/%7Ewelshbyte/svn/backuptool/trunk</S:src-path>...This looks like an XML based request sequence to me (and svn is talking WebDAV here, right?);XML based would be &126;, not %7E.
Read what you quoted again and realize you are agreeing with me ;-). The former (with "~") is what svn expects, the latter (with %7E) is what git-svn incorrectly threw at the server causing problems. I am wondering the whole %xx escaping thing, which does not seem to match what svn seems to expect.
Anyways, aren't there ready-to-use url quoting functions in perl ?
My question is not about correct "url quoting", but if using "url quoting" is correct in this context.