[MERGE] move smart_add_tree to MutableTree, tested on WorkingTree..

Robert Collins robertc at robertcollins.net
Wed Jul 4 03:18:34 BST 2007

On Tue, 2007-07-03 at 21:56 -0400, Aaron Bentley wrote:
> The interactions between inventory and dirstate mean that we have to
> periodically sync them.  When we do that, doesn't it potentially hit
> disk?

Not at present, and tests would fail if it did. It currently only ever
writes when the tree is just about to be fully unlocked.

> My feeling was that ability to change the inventory without writing it
> to disk, and without intending to ever write it to disk was an
> unintentional feature, and not something to rely on.

We used to have add code that simulated adding the files, but it was
considerably more complicated. I think if we can keeping the current
constraint of allowing a revert-to-disk facility is better.


GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070704/64ebbebf/attachment.pgp 

More information about the bazaar mailing list