Fixed an issue generating Subversion URLs on Windows.

Sat, 05 May 2012 12:08:41 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 05 May 2012 12:08:41 +0200
changeset 1837
36406a806be4
parent 1836
9cbc2af984fb
child 1839
03b44e1c67e6

Fixed an issue generating Subversion URLs on Windows.

Plugins/VcsPlugins/vcsPySvn/subversion.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsSubversion/subversion.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsPySvn/subversion.py	Fri May 04 20:13:35 2012 +0200
+++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py	Sat May 05 12:08:41 2012 +0200
@@ -2201,6 +2201,8 @@
         url = url.replace('\\', '/')
         if url.endswith('/'):
             url = url[:-1]
+        if not url.startswith("/") and url[1] in [":", "|"]:
+            url = "/{0}".format(url)
         return "{0}://{1}".format(protocol, url)
 
     ############################################################################
--- a/Plugins/VcsPlugins/vcsSubversion/subversion.py	Fri May 04 20:13:35 2012 +0200
+++ b/Plugins/VcsPlugins/vcsSubversion/subversion.py	Sat May 05 12:08:41 2012 +0200
@@ -1982,6 +1982,8 @@
         url = url.replace('\\', '/')
         if url.endswith('/'):
             url = url[:-1]
+        if not url.startswith("/") and url[1] in [":", "|"]:
+            url = "/{0}".format(url)
         return "{0}://{1}".format(protocol, url)
 
     ############################################################################

eric ide

mercurial