[RFC] Inventory.__delitem__ considered harmful

John Arbash Meinel john at arbash-meinel.com
Thu Sep 7 15:03:29 BST 2006


Robert Collins wrote:
> Inventory.__delitem__ is rather dangerous at the moment: it breaks the
> inventory invariant that all the parents of an entry are present in the
> inventory.
>
> I'd like to just remove it with extreme prejuidice - any objections?
> Anyone know plugins that depend on this?
>
> -Rob
>   

I don't know of anything using it. But I don't understand how an item
could have more than 1 parent.

I suppose we could extend it so that it recursively removes any children.

But I have no direct need for it to stay. Other than that we need some
way to remove entries from inventories.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060907/2363eedf/attachment.pgp 


More information about the bazaar mailing list