Fixed an issue normalizing Subversion URLs on Windows (need to be all lowercase, i.e. canonicalized).

Sun, 10 Jun 2012 17:55:19 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 10 Jun 2012 17:55:19 +0200
changeset 1890
6523d664e754
parent 1889
6de0f43f6678
child 1892
ba56498a41e2

Fixed an issue normalizing Subversion URLs on Windows (need to be all lowercase, i.e. canonicalized).

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	Sun Jun 10 16:45:10 2012 +0200
+++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py	Sun Jun 10 17:55:19 2012 +0200
@@ -2249,7 +2249,7 @@
         protocol, url = url.split("://")
         if url.startswith("\\\\"):
             url = url[2:]
-        url = url.replace('\\', '/')
+        url = os.path.normcase(url).replace('\\', '/')
         if url.endswith('/'):
             url = url[:-1]
         if not url.startswith("/") and url[1] in [":", "|"]:
--- a/Plugins/VcsPlugins/vcsSubversion/subversion.py	Sun Jun 10 16:45:10 2012 +0200
+++ b/Plugins/VcsPlugins/vcsSubversion/subversion.py	Sun Jun 10 17:55:19 2012 +0200
@@ -2045,7 +2045,7 @@
         protocol, url = url.split("://")
         if url.startswith("\\\\"):
             url = url[2:]
-        url = url.replace('\\', '/')
+        url = os.path.normcase(url).replace('\\', '/')
         if url.endswith('/'):
             url = url[:-1]
         if not url.startswith("/") and url[1] in [":", "|"]:

eric ide

mercurial