Plugins/VcsPlugins/vcsPySvn/subversion.py

changeset 1894
a7096cf751db
parent 1890
6523d664e754
child 1898
8cc59791d781
equal deleted inserted replaced
1893:354d70f80ea7 1894:a7096cf751db
2247 @return properly normalized url for subversion (string) 2247 @return properly normalized url for subversion (string)
2248 """ 2248 """
2249 protocol, url = url.split("://") 2249 protocol, url = url.split("://")
2250 if url.startswith("\\\\"): 2250 if url.startswith("\\\\"):
2251 url = url[2:] 2251 url = url[2:]
2252 url = os.path.normcase(url).replace('\\', '/') 2252 if protocol == "file":
2253 url = os.path.normcase(url)
2254 url = url.replace('\\', '/')
2253 if url.endswith('/'): 2255 if url.endswith('/'):
2254 url = url[:-1] 2256 url = url[:-1]
2255 if not url.startswith("/") and url[1] in [":", "|"]: 2257 if not url.startswith("/") and url[1] in [":", "|"]:
2256 url = "/{0}".format(url) 2258 url = "/{0}".format(url)
2257 return "{0}://{1}".format(protocol, url) 2259 return "{0}://{1}".format(protocol, url)

eric ide

mercurial