[MERGE]make readv(adjust_for_latency) work better at the end of files.
Robert Collins
robertc at robertcollins.net
Tue Oct 2 06:46:34 BST 2007
This allows Transport.readv to work better at the end of files; I
cleaned up various bits of code on the way through:
* Move transport logging into a new transport class
TransportTraceDecorator (trace+ to get it from a url).
* Give Registry a useful __repr__.
* Fix a bug introduced by the change to use a Registry for transport
where
the transport loading tests left global state behind due to the
_get_protocol_handlers method returning a reference, not a value
object.
* Add an upper_limit parameter to readv, because when asking for byte
ranges within the latency-adjustment window near the end of the file
causes errors that are tricky to manage.
* A few minor drive-by formatting fixes.
* The TransportDecorator constructor now accepts a _from_transport
parameter for decorators that want to share state (used by the trace
decorator)
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-mail-7OSAsc.patch
Type: text/x-patch
Size: 46328 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071002/132cdb8e/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071002/132cdb8e/attachment-0001.pgp
More information about the bazaar
mailing list