[MERGE] add lock hooks

Martin Pool mbp at canonical.com
Tue May 27 04:27:11 BST 2008


Here is an updated version of this patch.  Compared to the previous one.

* New base class PhysicalLock, with a .hooks attribute, rather than having
  it in the module namespace (where it might easily be incorrectly
  imported.)

* Hooks base class gains clone() and clear_hooks() methods, which I think
  are a cleaner way to save/clear/restore the hooks in tests or similar.

* It's updated for changes in the hooks api since it was written.

* Hooks renamed to lock_acquired and lock_released in keeping with the
general style of naming.

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20080527-lock-hooks.diff
Type: text/x-diff
Size: 21704 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080527/698ea566/attachment-0001.bin 


More information about the bazaar mailing list