Corrected the last change to the Subversion plug-ins. 5_2_x

Tue, 12 Jun 2012 19:01:14 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 12 Jun 2012 19:01:14 +0200
branch
5_2_x
changeset 1896
00a011db5c84
parent 1895
fec3f72261f3
child 1899
5204bd9baeb5

Corrected the last change to the Subversion plug-ins.

Plugins/VcsPlugins/vcsPySvn/subversion.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsSubversion/subversion.py file | annotate | diff | comparison | revisions
diff -r fec3f72261f3 -r 00a011db5c84 Plugins/VcsPlugins/vcsPySvn/subversion.py
--- a/Plugins/VcsPlugins/vcsPySvn/subversion.py	Tue Jun 12 18:58:53 2012 +0200
+++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py	Tue Jun 12 19:01:14 2012 +0200
@@ -2198,7 +2198,9 @@
         protocol, url = url.split("://")
         if url.startswith("\\\\"):
             url = url[2:]
-        url = os.path.normcase(url).replace('\\', '/')
+        if protocol == "file":
+            url = os.path.normcase(url)
+        url = url.replace('\\', '/')
         if url.endswith('/'):
             url = url[:-1]
         if not url.startswith("/") and url[1] in [":", "|"]:
diff -r fec3f72261f3 -r 00a011db5c84 Plugins/VcsPlugins/vcsSubversion/subversion.py
--- a/Plugins/VcsPlugins/vcsSubversion/subversion.py	Tue Jun 12 18:58:53 2012 +0200
+++ b/Plugins/VcsPlugins/vcsSubversion/subversion.py	Tue Jun 12 19:01:14 2012 +0200
@@ -1979,7 +1979,9 @@
         protocol, url = url.split("://")
         if url.startswith("\\\\"):
             url = url[2:]
-        url = os.path.normcase(url).replace('\\', '/')
+        if protocol == "file":
+            url = os.path.normcase(url)
+        url = url.replace('\\', '/')
         if url.endswith('/'):
             url = url[:-1]
         if not url.startswith("/") and url[1] in [":", "|"]:

eric ide

mercurial