[MERGE] Reorganize TreeTransform inventory delta creation

Aaron Bentley aaron at aaronbentley.com
Tue Aug 12 14:19:11 BST 2008


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

Hi all,

This patch refactors portions of TreeTransform._apply_removals and
TreeTransform._apply_insertions into a new
TreeTransform._generate_inventory_delta method.  This has a negligible
effect on performance (on MySQL trees) and code size.  The point is
simply to get cleaner code.

Some of the benefits are cleaner signatures for _apply_removals and
_apply_insertions.  The other major benefit is separation of concerns;
TT._generate_inventory_delta only does delta generation, while
TT._apply_insertions and TT._apply_removals handle the filesystem side.

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

iD8DBQFIoY3P0F+nu1YWqI0RAtl1AJwMrZB3McimyNj5MfSFxnalL4PN9gCfcjIq
j8MJoK2NMrqPCTEUcK/0TIM=
=SFh2
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: separate-delta-3628.patch
Type: text/x-diff
Size: 19111 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080812/cd2f44ad/attachment.bin 


More information about the bazaar mailing list