Rev 5580: (vila) Merge 2.2 into trunk including fix for bug #693880 (Vincent in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Fri Dec 24 19:57:30 GMT 2010
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 5580 [merge]
revision-id: pqm at pqm.ubuntu.com-20101224195728-86ec24997aplx1l0
parent: pqm at pqm.ubuntu.com-20101221115149-y0jab8xbwmo693gs
parent: v.ladeuil+lp at free.fr-20101224174918-89c0agg12luy0olo
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Fri 2010-12-24 19:57:28 +0000
message:
(vila) Merge 2.2 into trunk including fix for bug #693880 (Vincent
Ladeuil)
modified:
bzrlib/transport/http/_urllib2_wrappers.py _urllib2_wrappers.py-20060913231729-ha9ugi48ktx481ao-1
doc/en/release-notes/bzr-2.2.txt bzr2.2.txt-20101008081016-21wd86gpfhllpue3-39
=== modified file 'bzrlib/transport/http/_urllib2_wrappers.py'
--- a/bzrlib/transport/http/_urllib2_wrappers.py 2010-10-18 10:01:47 +0000
+++ b/bzrlib/transport/http/_urllib2_wrappers.py 2010-12-24 17:48:14 +0000
@@ -110,15 +110,19 @@
self.report_activity(len(s), 'read')
return s
- def readline(self):
- # This should be readline(self, size=-1), but httplib in python 2.4 and
- # 2.5 defines a SSLFile wrapper whose readline method lacks the size
- # parameter. So until we drop support for 2.4 and 2.5 and since we
- # don't *need* the size parameter we'll stay with readline(self)
- # -- vila 20090209
- s = self.filesock.readline()
- self.report_activity(len(s), 'read')
- return s
+ # httplib in python 2.4 and 2.5 defines a SSLFile wrapper whose readline
+ # method lacks the size parameter. python2.6 provides a proper ssl socket
+ # and added it. python2.7 uses it, forcing us to provide it.
+ if sys.version_info < (2, 6):
+ def readline(self):
+ s = self.filesock.readline()
+ self.report_activity(len(s), 'read')
+ return s
+ else:
+ def readline(self, size=-1):
+ s = self.filesock.readline(size)
+ self.report_activity(len(s), 'read')
+ return s
def __getattr__(self, name):
return getattr(self.filesock, name)
=== modified file 'doc/en/release-notes/bzr-2.2.txt'
--- a/doc/en/release-notes/bzr-2.2.txt 2010-12-16 20:41:47 +0000
+++ b/doc/en/release-notes/bzr-2.2.txt 2010-12-24 17:47:53 +0000
@@ -32,6 +32,13 @@
because this can cause knock-on errors at awkward times.
(Andrew Bennetts, #687653)
+* ``https`` access works again with recent versions of python2.7.
+ (Vincent Ladeuil, #693880)
+
+* RevisionTree.is_executable no longer returns None for directories and
+ symlinks. Instead, it returns False, like other Trees and methods.
+ (Aaron Bentley, #681885)
+
Improvements
************
More information about the bazaar-commits
mailing list