Plugins/VcsPlugins/vcsSubversion/subversion.py

changeset 442
f233430b5613
parent 425
ca5e65413fc5
child 495
b31b0bffa5b0
equal deleted inserted replaced
441:dec3dd52411a 442:f233430b5613
1765 else: 1765 else:
1766 scheme = url[0] 1766 scheme = url[0]
1767 if scheme == "file": 1767 if scheme == "file":
1768 return "{0}:{1}".format(scheme, urllib.parse.quote(url[1])) 1768 return "{0}:{1}".format(scheme, urllib.parse.quote(url[1]))
1769 else: 1769 else:
1770 host, path = url[1][2:].split("/",1) 1770 try:
1771 host, path = url[1][2:].split("/", 1)
1772 except ValueError:
1773 host = url[1][2:]
1774 path = ""
1771 return "{0}://{1}/{2}".format(scheme, host, urllib.parse.quote(path)) 1775 return "{0}://{1}/{2}".format(scheme, host, urllib.parse.quote(path))
1772 1776
1773 def svnNormalizeURL(self, url): 1777 def svnNormalizeURL(self, url):
1774 """ 1778 """
1775 Public method to normalize a url for subversion. 1779 Public method to normalize a url for subversion.

eric ide

mercurial