components/mercurial/patches/https_proxy.patch
author Danek Duvall <danek.duvall@oracle.com>
Mon, 13 Jan 2014 12:44:59 -0800
changeset 1637 54bd5ac8db85
parent 821 5450c885c205
permissions -rw-r--r--
18050227 mercurial 2.8.2

# 7029500 Mercurial doesn't work through https in snv_161

--- mercurial-2.8.2/mercurial/keepalive.py	Wed Jan  2 03:46:39 2014
+++ mercurial-2.8.2/mercurial/keepalive.py	Wed Jan  2 03:46:39 2014
@@ -247,6 +251,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))