diff performance & tree.lock/unlock

Aaron Bentley aaron.bentley at utoronto.ca
Thu Jan 12 15:51:58 GMT 2006


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

John Arbash Meinel wrote:
> I would say that lock_write() to something readonly should raise a
> not-possible exception.

I think it's appropriate to assume that calling code will not supply a
revision tree to any function that needs to write to a tree.  The two
are qualitatively different, and I think the WorkingTree interface
should be a superset of the Tree interface.

So I'd favour taking the method out.

Aaron

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

iD8DBQFDxnse0F+nu1YWqI0RAnXcAJ9A3nMCv06VwcrSekKyBmB1RDPhowCfZH4k
duvfCyDuoLgxGzukL3H9kKM=
=2Lqn
-----END PGP SIGNATURE-----




More information about the bazaar mailing list