RFC: make all inventories immutable except via deltas
Martin Pool
mbp at sourcefrog.net
Wed Jul 29 00:56:13 BST 2009
2009/7/29 Robert Collins <robertc at robertcollins.net>:
> I wonder if we have enough support in our inventory delta code to:
> - make all InventoryEntries immutable
> - remove mutators on Inventory other than apply_delta
>
> This might make it easier to avoid aliasing and similar bugs with
> Inventory, and would make it possible for dirstate to keep its created
> inventory up to date too. (By having that inventory not have an
> apply_delta method - or having the apply_delta apply to the dirstate
> too).
I don't know how close we are to doing this, but I'd like it.
I would like you to look at some of the 2.0 targeted bugs before
starting on this though.
--
Martin <http://launchpad.net/~mbp/>
More information about the bazaar
mailing list