Mercurial > hgsubversion
changeset 510:925ff8c5989c
Do URI-encode before opening
author | Afriza N. Arief <afriza.na@gmail.com> |
---|---|
date | Thu, 24 Dec 2009 13:10:36 -0600 |
parents | ac9c9e1a8022 |
children | 0e2564d4257d |
files | hgsubversion/svnwrap/svn_swig_wrapper.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/svnwrap/svn_swig_wrapper.py +++ b/hgsubversion/svnwrap/svn_swig_wrapper.py @@ -223,7 +223,11 @@ class SubversionRepo(object): callbacks.auth_baton = self.auth_baton self.callbacks = callbacks try: - self.ra = ra.open2(self.svn_url.encode('utf-8'), callbacks, + url = self.svn_url.encode('utf-8') + scheme, netloc, path, params, query, fragment = urlparse.urlparse(url) + path=urllib.quote(path) + url = urlparse.urlunparse((scheme, netloc, path, params, query, fragment)) + self.ra = ra.open2(url, callbacks, svn_config, self.pool) except core.SubversionException, e: raise hgutil.Abort(e.args[0])