Merge with crew-stable
authorPatrick Mezard <pmezard@gmail.com>
Thu, 25 Oct 2007 00:09:13 +0200
changeset 5477 f00ed7c5877b
parent 5475 3aa5c45874c6 (current diff)
parent 5476 b3afa6725082 (diff)
child 5479 dd5ca84ed868
Merge with crew-stable
--- a/mercurial/httprepo.py
+++ b/mercurial/httprepo.py
@@ -230,6 +230,9 @@ class httprepository(remoterepository):
             # "http_proxy.always" config is for running tests on localhost
             if (not ui.configbool("http_proxy", "always") and
                 host.lower() in no_list):
+                # avoid auto-detection of proxy settings by appending
+                # a ProxyHandler with no proxies defined.
+                handlers.append(urllib2.ProxyHandler({}))
                 ui.debug(_('disabling proxy for %s\n') % host)
             else:
                 proxyurl = urlparse.urlunsplit((