backward diffs in knits?

Robert Collins robertc at robertcollins.net
Tue Apr 10 05:06:26 BST 2007


Just chatting with Martin somewhat randomly about repositories formats -
we wondered if its possible to have knits support backward diffs?

That is, rather than patching forward, have a knit be able to patch
backwards to get content. This works by having the largest text the
first, and subsequent ones generally remove content rather than adding -
making the deltas smaller and also happily reducing the read time for
the most recent text. git packfiles do this with great effect AIUI.

It seems that it would be possible to do this with knits in two
circumstances - during a hypothethical 'optimise' or 'repack' command to
recompress all ones knits (in a safe manner, with rollback etc). And
during fetch of multiple revisions, one could use backward deltas
amongst the fetched revisions, for a slightly higher cpu cost.

Just starting with support for them, and a repack, would be interesting
in our opinion.

-Rob & Martin
-- 
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/20070410/f14aa99a/attachment.pgp 


More information about the bazaar mailing list