Plugins/VcsPlugins/vcsSubversion/subversion.py

branch
5_2_x
changeset 1896
00a011db5c84
parent 1891
400900cc80b1
child 1921
e7ee88a17118
equal deleted inserted replaced
1895:fec3f72261f3 1896:00a011db5c84
1977 @return properly normalized url for subversion (string) 1977 @return properly normalized url for subversion (string)
1978 """ 1978 """
1979 protocol, url = url.split("://") 1979 protocol, url = url.split("://")
1980 if url.startswith("\\\\"): 1980 if url.startswith("\\\\"):
1981 url = url[2:] 1981 url = url[2:]
1982 url = os.path.normcase(url).replace('\\', '/') 1982 if protocol == "file":
1983 url = os.path.normcase(url)
1984 url = url.replace('\\', '/')
1983 if url.endswith('/'): 1985 if url.endswith('/'):
1984 url = url[:-1] 1986 url = url[:-1]
1985 if not url.startswith("/") and url[1] in [":", "|"]: 1987 if not url.startswith("/") and url[1] in [":", "|"]:
1986 url = "/{0}".format(url) 1988 url = "/{0}".format(url)
1987 return "{0}://{1}".format(protocol, url) 1989 return "{0}://{1}".format(protocol, url)

eric ide

mercurial