xdelta multi-parent hack ?

Aaron Bentley aaron.bentley at utoronto.ca
Mon Jun 25 17:08:31 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Collins wrote:
> On Fri, 2007-06-22 at 12:47 -0500, John Arbash Meinel wrote:
> I have another thought, which is that we could consider generating a
> single recipe to reconstruct a revision rather than the recursive
> recipes we're looking at today.
> 
> E.g. (using a single parent example) rather than:
> text1 + delta2 = text2
> text2 + delta3 = text3
> ...            = TextIRequested
> 
> If we assume everything is stored as deltas, then we can reconstruct a
> text by listing the delta elements that make it up:
> rev1 bytes 40-50
> rev2 bytes 20-70
> rev3 bytes 200-201

That's a very interesting thought.  I designed MultiParent Diff
specifically to avoid reconstructing intermediate versions.  But the
line lookup, even though it doesn't do recursive function calls, is
still a recursive algorithm.

You're essentially setting it up so that the build parents of each
revision are all of the ancestors whose lines it contains.  Basically
precalculated diff composition.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGf+h/0F+nu1YWqI0RAvZ/AJ92pKtc+y+mOFqIqie/uZq/pN9UswCfTVVb
YvwAfx1SvtI6Jjoghifhimo=
=eFjh
-----END PGP SIGNATURE-----



More information about the bazaar mailing list