Plugins/VcsPlugins/vcsPySvn/subversion.py

branch
5_0_x
changeset 443
1e3e8ffa548f
parent 419
3b6f9355d02f
child 792
a13346916170
equal deleted inserted replaced
434:3a2b62a5db7a 443:1e3e8ffa548f
1982 else: 1982 else:
1983 scheme = url[0] 1983 scheme = url[0]
1984 if scheme == "file": 1984 if scheme == "file":
1985 return "%s:%s" % (scheme, urllib.parse.quote(url[1])) 1985 return "%s:%s" % (scheme, urllib.parse.quote(url[1]))
1986 else: 1986 else:
1987 host, path = url[1][2:].split("/",1) 1987 try:
1988 host, path = url[1][2:].split("/", 1)
1989 except ValueError:
1990 host = url[1][2:]
1991 path = ""
1988 return "%s://%s/%s" % (scheme, host, urllib.parse.quote(path)) 1992 return "%s://%s/%s" % (scheme, host, urllib.parse.quote(path))
1989 1993
1990 def svnNormalizeURL(self, url): 1994 def svnNormalizeURL(self, url):
1991 """ 1995 """
1992 Public method to normalize a url for subversion. 1996 Public method to normalize a url for subversion.

eric ide

mercurial