Plugins/VcsPlugins/vcsSubversion/subversion.py

branch
5_3_x
changeset 2455
0e33ff267952
parent 2302
f29e9405c851
child 2764
1d85539ac41a
equal deleted inserted replaced
2450:8b99e0a898c3 2455:0e33ff267952
2071 Public method to normalize a url for subversion. 2071 Public method to normalize a url for subversion.
2072 2072
2073 @param url url string (string) 2073 @param url url string (string)
2074 @return properly normalized url for subversion (string) 2074 @return properly normalized url for subversion (string)
2075 """ 2075 """
2076 protocol, url = url.split("://") 2076 protocol, url = url.split("://", 1)
2077 if url.startswith("\\\\"): 2077 if url.startswith("\\\\"):
2078 url = url[2:] 2078 url = url[2:]
2079 if protocol == "file": 2079 if protocol == "file":
2080 url = os.path.normcase(url) 2080 url = os.path.normcase(url)
2081 url = url.replace('\\', '/') 2081 url = url.replace('\\', '/')

eric ide

mercurial