convert svn: canonicalize path before calling url_from_path.
authorBrendan Cully <brendan@kublai.com>
Thu, 26 Jul 2007 14:02:49 -0700
changeset 5020 780051cca03c
parent 5010 6b2d8caf87b2
child 5021 7628612b822c
convert svn: canonicalize path before calling url_from_path. Otherwise libsvn has a tendency to abort().
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Thu Jul 26 10:57:26 2007 -0700
+++ b/hgext/convert/subversion.py	Thu Jul 26 14:02:49 2007 -0700
@@ -39,8 +39,7 @@
 
 def geturl(path):
     try:
-        #extract URL from working directory
-        return svn.client.url_from_path(path)
+        return svn.client.url_from_path(svn.core.svn_path_canonicalize(path))
     except SubversionException:
         pass
     if os.path.isdir(path):