Corrected the last change to the Subversion plug-ins.

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 12 Jun 2012 19:01:14 +0200
changeset 1894
a7096cf751db
parent 1893
354d70f80ea7
child 1897
4c89af5a756f

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
--- 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
@@ -2249,7 +2249,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 [":", "|"]:
--- 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
@@ -2045,7 +2045,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