Rev 3883: Use urllib for http connections, pycurl for https connections. in http://bzr.arbash-meinel.com/branches/bzr/1.11/default_urllib
John Arbash Meinel
john at arbash-meinel.com
Mon Dec 8 19:44:21 GMT 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.11/default_urllib
------------------------------------------------------------
revno: 3883
revision-id: john at arbash-meinel.com-20081208194402-v50vbmybtyiojlk5
parent: pqm at pqm.ubuntu.com-20081205181554-ofrdnafloc43bxkh
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: default_urllib
timestamp: Mon 2008-12-08 13:44:02 -0600
message:
Use urllib for http connections, pycurl for https connections.
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS 2008-12-05 17:26:40 +0000
+++ b/NEWS 2008-12-08 19:44:02 +0000
@@ -45,6 +45,11 @@
returned from each pack in turn, in forward I/O order.
(John Arbash Meinel)
+ * The default http handler has been changed from pycurl to urllib.
+ The default is still pycurl for https connections. (The only
+ advantage of pycurl is that it checks ssl certificates.)
+ (John Arbash Meinel)
+
bzr 1.10 2008-12-05
-------------------
=== modified file 'bzrlib/transport/__init__.py'
--- a/bzrlib/transport/__init__.py 2008-12-01 23:20:22 +0000
+++ b/bzrlib/transport/__init__.py 2008-12-08 19:44:02 +0000
@@ -1739,12 +1739,13 @@
help="Read-only access of branches exported on the web.")
register_transport_proto('https://',
help="Read-only access of branches exported on the web using SSL.")
+# The default http implementation is urllib, but https is pycurl if available
+register_lazy_transport('http://', 'bzrlib.transport.http._pycurl',
+ 'PyCurlTransport')
register_lazy_transport('http://', 'bzrlib.transport.http._urllib',
'HttpTransport_urllib')
register_lazy_transport('https://', 'bzrlib.transport.http._urllib',
'HttpTransport_urllib')
-register_lazy_transport('http://', 'bzrlib.transport.http._pycurl',
- 'PyCurlTransport')
register_lazy_transport('https://', 'bzrlib.transport.http._pycurl',
'PyCurlTransport')
More information about the bazaar-commits
mailing list