changeset 5020:780051cca03c

convert svn: canonicalize path before calling url_from_path. Otherwise libsvn has a tendency to abort().
author Brendan Cully <brendan@kublai.com>
date Thu, 26 Jul 2007 14:02:49 -0700
parents 6b2d8caf87b2
children 7628612b822c
files hgext/convert/subversion.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):