components/mercurial/patches/https_proxy.patch
changeset 150 2e044e9ef7de
child 196 816e398e992c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/mercurial/patches/https_proxy.patch	Thu Mar 24 15:37:52 2011 -0700
@@ -0,0 +1,14 @@
+# 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)
+