diff -r e47a9d5954e8 -r 72f3bde98c58 Plugins/VcsPlugins/vcsMercurial/hg.py --- a/Plugins/VcsPlugins/vcsMercurial/hg.py Wed Dec 04 22:08:03 2013 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/hg.py Fri Dec 13 22:45:47 2013 +0100 @@ -10,9 +10,8 @@ from __future__ import unicode_literals # __IGNORE_WARNING__ try: str = unicode - import urllib as parse except (NameError): - import urllib.parse as parse # __IGNORE_WARNING__ + pass import os import shutil @@ -1445,21 +1444,21 @@ host = url[2] port, path = url[3].split("/", 1) return "{0}:{1}:{2}:{3}/{4}".format( - scheme, user, host, port, parse.quote(path)) + scheme, user, host, port, Utilities.quote(path)) elif len(url) == 3: scheme = url[0] host = url[1] port, path = url[2].split("/", 1) return "{0}:{1}:{2}/{3}".format( - scheme, host, port, parse.quote(path)) + scheme, host, port, Utilities.quote(path)) else: scheme = url[0] if scheme == "file": - return "{0}:{1}".format(scheme, parse.quote(url[1])) + return "{0}:{1}".format(scheme, Utilities.quote(url[1])) else: host, path = url[1][2:].split("/", 1) return "{0}://{1}/{2}".format( - scheme, host, parse.quote(path)) + scheme, host, Utilities.quote(path)) def hgNormalizeURL(self, url): """