Possible solution for reading bundles from stdin

Daniel Silverstone dsilvers at digital-scurf.org
Tue Feb 13 18:01:16 GMT 2007


Hi,

I was looking at the list of unattempted specs for bzr thus-far on the
launchpad and noticed the bundle-piping spec.

Since I had a few minutes while some kernels built I figured I'd have a
go at a possible solution.

I chose to implement a transport (where some might have special-cased in
bzrlib.bundle.read_bundle_from_url) because I figured it might be of use
later to have it more generic.

As such, I implemented the pipe:// transport. It supports only one full
URL, namely pipe:///stdin (although this can change in the future
reasonably easily)

This enables use along the lines of:

gpg --decrypt secretbundle | bzr merge pipe:///stdin

I hereby present a bundle implementing this and ask for comments. I'm
under no illusions as to its lack of readiness to go into bzr.dev
(namely it's been ages since I've done any bzr hacking so I'm bound to
have messed up what I have, and I know the transport is not yet fully
hooked into the test suite)

D.

-- 
Daniel Silverstone                         http://www.digital-scurf.org/
PGP mail accepted and encouraged.            Key Id: 2BC8 4016 2068 7895

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pipe-transport-bundle.diff
Type: text/x-patch
Size: 22142 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070213/e70b9ffb/attachment-0001.bin 


More information about the bazaar mailing list