~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4413.5.4.

  • Committer: John Arbash Meinel
  • Date: 2009-06-08 17:29:47 UTC
  • mto: This revision was merged to the branch mainline in revision 4461.
  • Revision ID: john@arbash-meinel.com-20090608172947-r9hucea21l7mse3m
Change CHKMap.from_dict to create a LeafNode and split it.
As opposed to using multiple calls to .map().
There were a few edge cases that needed to be fixed.
Such as:
1) setting self._raw_size
2) LeafNode.map() needed to properly handle when one of its child nodes also split.
3) Update CHK1.apply_inventory_by_delta to use this new function when appropriate
4) For now from_dict() continues to do it both ways, just to make sure it gives
correct results.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: