[RFC] insert_data_stream/get_data_stream returning more keys
Robert Collins
robertc at robertcollins.net
Tue Nov 18 00:44:57 GMT 2008
On Mon, 2008-11-17 at 17:13 -0600, John Arbash Meinel wrote:
>
> Thoughts?
A few things; firstly, have you seen the concrete proposal for a
repository level streaming interface I put up in april? It tried to
address all the cases then as well.
Secondly, I don't think the 'some revs are complete so we can commit'
will work unless you buffer all the revision objects and don't write
them as you get them, because otherwise you'll insert revs without all
their parents - introducing ghosts.
We can insert partial data for a revision anytime we want with no
trouble, as long as we don't insert the revision itself. But there is no
point in doing that, because a smart server will send that data again
anyway, unless you chatter down into the text keys and so on, and thats
rather pointless.
I think handling progress is useful, but can be done on a simple stream
anyway - for instance, just by including another attribute on each
record emitted.
-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/20081118/50b85b66/attachment.pgp
More information about the bazaar
mailing list