packs and knits

Robert Collins robertc at robertcollins.net
Tue Aug 7 23:32:50 BST 2007


On Tue, 2007-08-07 at 09:21 -0400, Aaron Bentley wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Robert Collins wrote:
> >>> so it makes sense to me to name the record
> >>> ('text', fileid, revisionid). (for a revision knit that would be
> >>> ('revision', revisionid, etc) - just namespacing.
> >> How would you name a fulltext?
> > 
> > ('text', fileid, revisionid). This is not necessarily the final scheme -
> > I'm trying to change one variable at a time at the moment.
> 
> Okay.  In the final scheme, we may want provide deltas for records that
> also have fulltexts.  (The fulltexts can be derived from the deltas, so
> they are *derivable data* that could optionally be stripped.) 

Equally, the deltas are derivable from the fulltexts ;).

>  That
> would make generation of bundles faster, since it would be more a matter
> of filtering out fulltexts than generating anything new.

Presuming that the deltas are mpdiff deltas?

Anyhow, yes this is the sort of name collision I was saying that we
don't have today.

> >>> If this makes sense I'll put a patch together to do a Pack version bump
> >>> and API bump to allow tuple based naming.
> >> I think tuple-based naming would be very nice, and I wish I'd had it for
> >>  Bundle format 4.
> >>
> >> How will your proposed bumps affect Bundles?
> > 
> > 0.18 has your bundle format 4 right?
> 
> No, but 0.19 is expected to.

Ok. Is it going to be traumatic if I update the current pack format
then, as it hasn't been released? That would be a little simpler. I can
do it today.


> I think we should hold off on implementing new bundle formats until it
> is clear whether we should just reuse the repository pack format for the
> purpose.  Even if we don't, we can still try to ensure that similar data
> is encoded in similar ways.

I agree.

-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/20070808/53357d4e/attachment.pgp 


More information about the bazaar mailing list