[MERGE] WorkingTree.lock_tree_write
Robert Collins
robertc at robertcollins.net
Sun Sep 10 23:55:33 BST 2006
Hi, quoting NEWS:
* WorkingTree has a new lock_tree_write method which locks the branch for
read rather than write. This is appropriate for actions which only need
the branch data for reference rather than mutation. A new decorator
needs_tree_write_lock is provided in the workingtree module. Like the
needs_read_lock and needs_write_lock decorators this allows static
declaration of the locking requirements of a function to ensure that
a lock is taken out for casual scripts. (Robert Collins)
I'm working on converting some of the existing locks in WorkingTree to
use this, but I expect that to be a pretty routine search and replace -
which may take some time if there are test failures due to layering etc
in there. So I'd like to merge this part which adds the new
functionality first.
Cheers,
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lock-tree-write.patch
Type: text/x-patch
Size: 9625 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060911/097ed0c7/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060911/097ed0c7/attachment.pgp
More information about the bazaar
mailing list