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

Aaron Bentley aaron.bentley at utoronto.ca
Wed Jul 4 04:49:25 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Collins wrote:
> On Tue, 2007-07-03 at 23:23 -0400, Aaron Bentley wrote:
>> We're now saying that the whole concept of inventory is bust, and that
>> we'd like to make it merely an implementation detail of WorkingTree.  If
>> that's so, I don't think we should be relying on this quirky inventory
>> behavior.
> 
> So how should --dry-run operations work - I presume we want
> add
> commit
> merge
> push
> pull
> revert
> remove
> 
> to all have --dry-run eventually, which should really indicate whether
> the command will succeed or fail.

Well, for the moment, add can work the way it already does, except that
it should guarantee that after the dry-run, the WT.inventory will be
unchanged.

For the future, these can all generate inventory deltas, and for
dry-run, not apply them.

Revert, merge and pull can already be put through a dry run simply by
calling "TreeTransform.finalize" instead of "TreeTransform.apply"

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGixjF0F+nu1YWqI0RAp9LAKCHs4RNfLCUXr+lhIRU8n8xdGQKfgCeNOP1
EqecaffMvKVGRJL3s7aclLI=
=zPvN
-----END PGP SIGNATURE-----



More information about the bazaar mailing list