Plugins/VcsPlugins/vcsPySvn/subversion.py

changeset 442
f233430b5613
parent 424
d0915392cbd7
child 495
b31b0bffa5b0
equal deleted inserted replaced
441:dec3dd52411a 442:f233430b5613
1983 else: 1983 else:
1984 scheme = url[0] 1984 scheme = url[0]
1985 if scheme == "file": 1985 if scheme == "file":
1986 return "{0}:{1}".format(scheme, urllib.parse.quote(url[1])) 1986 return "{0}:{1}".format(scheme, urllib.parse.quote(url[1]))
1987 else: 1987 else:
1988 host, path = url[1][2:].split("/",1) 1988 try:
1989 host, path = url[1][2:].split("/", 1)
1990 except ValueError:
1991 host = url[1][2:]
1992 path = ""
1989 return "{0}://{1}/{2}".format(scheme, host, urllib.parse.quote(path)) 1993 return "{0}://{1}/{2}".format(scheme, host, urllib.parse.quote(path))
1990 1994
1991 def svnNormalizeURL(self, url): 1995 def svnNormalizeURL(self, url):
1992 """ 1996 """
1993 Public method to normalize a url for subversion. 1997 Public method to normalize a url for subversion.

eric ide

mercurial