[MERGE] Add Hooks.install_named_hook

Daniel Mark Watkins D.M.Watkins at warwick.ac.uk
Sun Mar 9 00:01:48 GMT 2008


Fixing another of Alexander's recent quibbles with hooks, this adds the
Hooks.install_named_hook method, which does exactly what
Hooks.install_hook does, but requires a 'name' parameter which
describes the given callable.

As far as I see it, there's no reason not to provide a name for a hook
when installing it (and doing so is certainly preferable), so
deprecating the old method seemed like a reasonable thing to do.


Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: install_named_hook.patch
Type: text/x-patch
Size: 8719 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080309/e3f66865/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080309/e3f66865/attachment.pgp 


More information about the bazaar mailing list