Plugins/VcsPlugins/vcsPySvn/subversion.py

branch
5_2_x
changeset 1891
400900cc80b1
parent 1838
03fca22bc7fe
child 1896
00a011db5c84
equal deleted inserted replaced
1887:fc774fba0426 1891:400900cc80b1
2196 @return properly normalized url for subversion (string) 2196 @return properly normalized url for subversion (string)
2197 """ 2197 """
2198 protocol, url = url.split("://") 2198 protocol, url = url.split("://")
2199 if url.startswith("\\\\"): 2199 if url.startswith("\\\\"):
2200 url = url[2:] 2200 url = url[2:]
2201 url = url.replace('\\', '/') 2201 url = os.path.normcase(url).replace('\\', '/')
2202 if url.endswith('/'): 2202 if url.endswith('/'):
2203 url = url[:-1] 2203 url = url[:-1]
2204 if not url.startswith("/") and url[1] in [":", "|"]: 2204 if not url.startswith("/") and url[1] in [":", "|"]:
2205 url = "/{0}".format(url) 2205 url = "/{0}".format(url)
2206 return "{0}://{1}".format(protocol, url) 2206 return "{0}://{1}".format(protocol, url)

eric ide

mercurial