RFC: make all inventories immutable except via deltas

Robert Collins robertc at robertcollins.net
Wed Jul 29 01:13:24 BST 2009


On Wed, 2009-07-29 at 09:56 +1000, Martin Pool wrote:
> 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.

Oh sure; it just seemed topical as I wrap up this 2.0 targeted bug I'm
working on :P..

-Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090729/7cac0d1b/attachment.pgp 


More information about the bazaar mailing list