lp://qastaging/~bzr/bzr/bzr.get.with.hints

Created by Bazaar Developers and last modified

This branch is an attempt to add a parameter to the transport.get method while wrapping existing (but defined outside bzr core) transports to ensure compatibility.
This should be regarded as an experiment and is not intended to merged in core as is.

Get this branch:
bzr branch lp://qastaging/~bzr/bzr/bzr.get.with.hints
Members of Bazaar Developers can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Bazaar Developers
Project:
Bazaar
Status:
Experimental

Recent revisions

2280. By Vincent Ladeuil

Handle pseudo-transports gracefully (do nothing).

* bzrlib/transport/__init__.py:
(_add_hints_to_get): Doh. Check that 'get' exists before wrapping
it.

2279. By Vincent Ladeuil

Add an hints kwargs to transport.get methods. Wraps unaware
transports to ensure compatibility.

* bzrlib/tests/test_transport_hints.py:
New file.

* bzrlib/tests/__init__.py:
(test_suite): Add test_transport_hints.

* bzrlib/tests/test_transport.py:
(TestTransportAPI): Test the get compatibility wrapping.

* bzrlib/tests/test_transport_implementations.py:
(_append): Deleted. Nobody uses it anymore.

* bzrlib/transport/__init__.py:
(_inject_get_with_hints): Deleted.
(_add_hints_to_get.get): New method to ensure the compatibility
with old code while adding a new parameter to the transport.get
method.
(register_lazy_transport._loader): Issue a deprecation warning if
needed.
(TransportHints, TransportGetHints): New hints classes.
(Transport.create_get_hints): New method creating a suitable hints
object.
(Transport.get, TransportLogger.get): Add hints as kwargs.

* bzrlib/transport/chroot.py:
(ChrootTransportDecorator.get): Add hints as kwargs.

* bzrlib/transport/decorator.py:
(TransportDecorator.get): Add hints as kwargs.

* bzrlib/transport/fakevfat.py:
(FakeVFATTransportDecorator.get): Add hints as kwargs.

* bzrlib/transport/ftp.py:
(FtpTransport.get): Add hints as kwargs.

* bzrlib/transport/http/__init__.py:
(HttpTransportBase.get, HttpTransportBase._get): Add hints as kwargs.

* bzrlib/transport/http/_pycurl.py:
(PyCurlTransport._get): Add hints as kwargs.

* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib._get): Add hints as kwargs.

* bzrlib/transport/local.py:
(LocalTransport.get): Add hints as kwargs.

* bzrlib/transport/memory.py:
(MemoryTransport.get): Add hints as kwargs.

* bzrlib/transport/sftp.py:
(SFTPTransport.get): Add hints as kwargs.

* bzrlib/transport/smart.py:
(SmartTransport.get): Add hints as kwargs.

* bzrlib/errors.py:
(UnknownHint): New exception class.

2278. By Canonical.com Patch Queue Manager<email address hidden>

(John Arbash Meinel) restrict GPGStrategy.sign() to 8-bit strings

2277. By Canonical.com Patch Queue Manager<email address hidden>

(John Arbash Meinel) NEWS update (trivial)

2276. By Canonical.com Patch Queue Manager<email address hidden>

Hide unknowns and inventory

2275. By Canonical.com Patch Queue Manager<email address hidden>

(mbp) add lp: urls to plugin (r=john)

2274. By Canonical.com Patch Queue Manager<email address hidden>

(robertc) 4 new branch hooks: post_push, post_pull, post_commit, post_uncommit, and fix the inability to do a bzr pull --overwrite of a heavyweight checkout.

2273. By Canonical.com Patch Queue Manager<email address hidden>

(James Westby, Aaron Bentley) Improve documentation for checkouts

2272. By Canonical.com Patch Queue Manager<email address hidden>

Use a Registry for merge-type options

2271. By Canonical.com Patch Queue Manager<email address hidden>

(John Arbash Meinel) allow 'bzr push' to resume an interrupted push, and push into an existing directory (#30576, #45504)

This branch contains Public information 
Everyone can see this information.

Subscribers

No subscribers.