components/mercurial/patches/https_proxy.patch
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Thu, 24 Mar 2011 15:37:52 -0700
changeset 150 2e044e9ef7de
child 196 816e398e992c
permissions -rw-r--r--
7029500 Mercurial doesn't work through https in snv_161 7029713 python compiler paths are broken in snv_161

# 7029500 Mercurial doesn't work through https in snv_161
#
--- mercurial-1.3.1/mercurial/keepalive.py.orig	Tue Mar 22 14:52:16 2011
+++ mercurial-1.3.1/mercurial/keepalive.py	Tue Mar 22 14:52:58 2011
@@ -239,6 +239,8 @@
             else:
                 # no (working) free connections were found.  Create a new one.
                 h = http_class(host)
+		if req._tunnel_host:
+			h._set_tunnel(req._tunnel_host)
                 if DEBUG: DEBUG.info("creating new connection to %s (%d)",
                                      host, id(h))
                 self._cm.add(host, h, 0)