Lazily registering hooks?
Gary van der Merwe
garyvdm at gmail.com
Sun May 30 19:24:12 BST 2010
On Sun, May 30, 2010 at 7:01 PM, Jelmer Vernooij <jelmer at samba.org> wrote:
> On Sun, 2010-05-30 at 11:56 -0500, John Arbash Meinel wrote:
>> The best I can think of still just ends up with a central registry. The
>> Hook code could be localized, but it would end up saying "what bits were
>> interested in my hook", and then call back to have them loaded.
> That doesn't seem too bad actually, especially given this could all be done
> under the covers in bzrlib.hooks (and the plugins would have to be updated, of
> course).
We could have deprecated properties where the old hook was, pointing
to the new centralized hook. Then old plugins will just give a
deprecated warning, rather than fail with a AttributeError.
More information about the bazaar
mailing list