[MERGE] Added ability to pass output file object to cmd_send.

Robert Collins robertc at robertcollins.net
Mon Feb 4 03:53:01 GMT 2008


bb:tweak

On Mon, 2008-02-04 at 04:39 +0100, Monty Taylor wrote:
> Here's a really small one that lets you pass in a file-like object to
> cmd_send. This can be helpful for writing plugins that would like to
> call cmd_send and intercept the output and use it for something else.

A better way to do this would be to:
 * push the send logic into a domain class somewhere.
 * Have your cmd_send decorator just call into the domain class
directly.

`bzr send` does not always generate output, and the sort of mangling you
are getting into is really not part of the UI layer.

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- 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/20080204/a925828a/attachment.pgp 


More information about the bazaar mailing list