Plugins/VcsPlugins/vcsPySvn/subversion.py

branch
5_2_x
changeset 1684
31da4aea789e
parent 1589
9f0fef4a4fbe
child 1837
36406a806be4
--- a/Plugins/VcsPlugins/vcsPySvn/subversion.py	Sun Feb 26 10:06:58 2012 +0100
+++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py	Wed Feb 29 20:09:55 2012 +0100
@@ -2195,11 +2195,13 @@
         @param url url string (string)
         @return properly normalized url for subversion (string)
         """
+        protocol, url = url.split("://")
+        if url.startswith("\\\\"):
+            url = url[2:]
         url = url.replace('\\', '/')
         if url.endswith('/'):
             url = url[:-1]
-        urll = url.split('//')
-        return "{0}//{1}".format(urll[0], '/'.join(urll[1:]))
+        return "{0}://{1}".format(protocol, url)
 
     ############################################################################
     ## Methods to get the helper objects are below.

eric ide

mercurial