[MERGE] revert deletes files when it is safe

Aaron Bentley aaron.bentley at utoronto.ca
Wed Sep 27 21:58:58 BST 2006


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

John Arbash Meinel wrote:
> Aaron Bentley wrote:
> 
>>John Arbash Meinel wrote:
> What would you prefer?

I would prefer self.change_file_contents(path, new_contents)

> We already have a common idiom of using
> 'self.build_tree([])' for creating a tree with arbitrary contents. 

Right, but
- - build_tree is not a good name when you're updating an existing tree
- - using lists is overkill when you're just trying to update one or two
  files.
- - interpreting the list as tuples is not discoverable, and hard to
  finger-type correctly.

> I *think* Robert is wanting to switch the tests over to MemoryTree where
> possible. Which means he can change build_tree_contents() to work on a
> Transport, and not have to actually write to disk for lots of tests.

I'm not entirely comfortable with this kind of simulation, but I wasn't
trying to block it.  I think we should get Martin to write a sequel for
distcc: distunittest.

> Though now that I realize that, I want to ask Robert to give selftest a
> flag to actually write to disk. As sometimes you need to do a
> post-mortem. Which is impossible if everything is in RAM. (Mabye the
> flag could be automatically set by using --keep-output).

True.

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

iD8DBQFFGuYS0F+nu1YWqI0RAsVfAJ9Fc62SxdHhZjaWWQkOylaWUgxVTQCfdFfX
i7bmGnQ0XL3wlzKfv+pJNVg=
=+0PF
-----END PGP SIGNATURE-----




More information about the bazaar mailing list