Plugins/VcsPlugins/vcsSubversion/subversion.py

branch
5_2_x
changeset 1838
03fca22bc7fe
parent 1684
31da4aea789e
child 1880
dbd4d7698310
child 1891
400900cc80b1
equal deleted inserted replaced
1832:01f9c5dc0dbe 1838:03fca22bc7fe
1980 if url.startswith("\\\\"): 1980 if url.startswith("\\\\"):
1981 url = url[2:] 1981 url = url[2:]
1982 url = url.replace('\\', '/') 1982 url = url.replace('\\', '/')
1983 if url.endswith('/'): 1983 if url.endswith('/'):
1984 url = url[:-1] 1984 url = url[:-1]
1985 if not url.startswith("/") and url[1] in [":", "|"]:
1986 url = "/{0}".format(url)
1985 return "{0}://{1}".format(protocol, url) 1987 return "{0}://{1}".format(protocol, url)
1986 1988
1987 ############################################################################ 1989 ############################################################################
1988 ## Methods to get the helper objects are below. 1990 ## Methods to get the helper objects are below.
1989 ############################################################################ 1991 ############################################################################

eric ide

mercurial