[PATCH] Fix https

Augie Fackler durin42 at gmail.com
Tue Oct 28 12:05:38 CDT 2008


# HG changeset patch
# User Augie Fackler <durin42 at gmail.com>
# Date 1225213504 18000
# Node ID 714bc855830a084b9fb0353e9e455c313cbb3d8f
# Parent  08dc0152bb5e0d40eaa3d862a6a02e55b5e83d27
Fix https availability checking.

diff --git a/mercurial/httprepo.py b/mercurial/httprepo.py
--- a/mercurial/httprepo.py
+++ b/mercurial/httprepo.py
@@ -21,6 +21,7 @@
          raise IOError(None, _('connection ended unexpectedly'))
      yield zd.flush()

+has_https = hasattr(urllib2, 'HTTPSHandler')
  class httprepository(repo.repository):
      def __init__(self, ui, path):
          self.path = path

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20081028/33afd76e/attachment.bin 


More information about the Mercurial-devel mailing list