[MERGE] Allow hooks to add new entries to version-info.
Robert Collins
robert.collins at canonical.com
Mon Apr 6 03:49:42 BST 2009
On Mon, 2009-04-06 at 04:35 +0200, Jelmer Vernooij wrote:
> Robert Collins wrote:
> > Robert Collins has voted resubmit.
> > Status is now: Resubmit
> > Comment:
> > You need to register your hooks with the registry in bzrlib.hooks.
> Thanks for the review, I've attached an updated patch.
>
> I hadn't seen the hooks registry before; does this also allow lazily
> installing hooks by not loading the *Hooks instances or is it just for
> the hooks help?
Not at this point. It's lazy to the extent that an unused hook won't be
loaded at all (until someone generates docs). The registry is for docs
*and* correctness though - the test suite uses it to remove all hooks
before running a test and to restore them afterwards.
This will not make 1.14 which has already branched, so you should set
the introducing version as 1.15.
bb:tweak.
-Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090406/eb45e560/attachment-0001.pgp
More information about the bazaar
mailing list