changeset 511:0e2564d4257d

paths: autoescape paths from the user This means that users should no longer URI-encode their paths. This is a change from the past, and may require some small changes to .hg/hgrc. This fixes certain odd issues resulting from inconsistent handling of URI-encoding throughout hgsubversion.
author Augie Fackler <durin42@gmail.com>
date Thu, 24 Dec 2009 13:30:08 -0600
parents 925ff8c5989c
children c421e6bf0d95
files hgsubversion/svnwrap/svn_swig_wrapper.py tests/test_util.py
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svnwrap/svn_swig_wrapper.py
+++ b/hgsubversion/svnwrap/svn_swig_wrapper.py
@@ -194,7 +194,7 @@ class SubversionRepo(object):
 
         self.init_ra_and_client()
         self.uuid = ra.get_uuid(self.ra, self.pool)
-        repo_root = ra.get_repos_root(self.ra, self.pool)
+        repo_root = urllib.unquote(ra.get_repos_root(self.ra, self.pool))
         # *will* have a leading '/', would not if we used get_repos_root2
         self.subdir = url[len(repo_root):]
         if not self.subdir or self.subdir[-1] != '/':
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -89,7 +89,6 @@ def filtermanifest(manifest):
 def fileurl(path):
     path = os.path.abspath(path)
     drive, path = os.path.splitdrive(path)
-    path = urllib.pathname2url(path)
     if drive:
         drive = '/' + drive
     url = 'file://%s%s' % (drive, path)