Fixed an issue generating Subversion URLs on Windows. 5_2_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 05 May 2012 12:08:41 +0200
branch
5_2_x
changeset 1838
03fca22bc7fe
parent 1832
01f9c5dc0dbe
child 1840
7c1e74e196a9

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	Wed May 02 19:10:17 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	Wed May 02 19:10:17 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