1764 else: |
1764 else: |
1765 scheme = url[0] |
1765 scheme = url[0] |
1766 if scheme == "file": |
1766 if scheme == "file": |
1767 return "%s:%s" % (scheme, urllib.parse.quote(url[1])) |
1767 return "%s:%s" % (scheme, urllib.parse.quote(url[1])) |
1768 else: |
1768 else: |
1769 host, path = url[1][2:].split("/",1) |
1769 try: |
|
1770 host, path = url[1][2:].split("/", 1) |
|
1771 except ValueError: |
|
1772 host = url[1][2:] |
|
1773 path = "" |
1770 return "%s://%s/%s" % (scheme, host, urllib.parse.quote(path)) |
1774 return "%s://%s/%s" % (scheme, host, urllib.parse.quote(path)) |
1771 |
1775 |
1772 def svnNormalizeURL(self, url): |
1776 def svnNormalizeURL(self, url): |
1773 """ |
1777 """ |
1774 Public method to normalize a url for subversion. |
1778 Public method to normalize a url for subversion. |