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. |