Mercurial > hg
diff hgext/convert/transport.py @ 15599:c6be93a4c378 stable
convert/svn: fix URL quoting issue with svn 1.7
As of svn 1.7, many svn calls expect "canonical" paths. In theory, we should
call svn.core.*canonicalize() on all paths before passing them to the API.
Instead, we assume the base url is canonical and copy the behaviour of svn URL
encoding function so we can extend it safely with new components.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Thu, 01 Dec 2011 20:42:24 +0100 |
parents | 6e3c560f2fd1 |
children | 7de7630053cb |
line wrap: on
line diff
--- a/hgext/convert/transport.py Wed Nov 30 15:11:00 2011 +0100 +++ b/hgext/convert/transport.py Thu Dec 01 20:42:24 2011 +0100 @@ -86,7 +86,7 @@ self.client.config = svn_config try: self.ra = svn.client.open_ra_session( - self.svn_url.encode('utf8'), + self.svn_url, self.client, self.pool) except SubversionException, (inst, num): if num in (svn.core.SVN_ERR_RA_ILLEGAL_URL,