~bzr/ubuntu/lucid/bzr/beta-ppa

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: Martin Pool
  • Date: 2010-08-18 04:26:39 UTC
  • mfrom: (129.1.8 packaging-karmic)
  • Revision ID: mbp@sourcefrog.net-20100818042639-mjoxtngyjwiu05fo
* PPA rebuild for lucid.
* PPA rebuild for karmic.
* PPA rebuild onto jaunty.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""Support for plugin hooking logic."""
19
19
from bzrlib import registry
20
20
from bzrlib.lazy_import import lazy_import
21
 
from bzrlib.symbol_versioning import deprecated_method
22
21
lazy_import(globals(), """
23
22
import textwrap
24
23
 
59
58
    ('bzrlib.version_info_formats.format_rio', 'RioVersionInfoBuilder.hooks'),
60
59
    'bzrlib.version_info_formats.format_rio', 'RioVersionInfoBuilderHooks')
61
60
known_hooks.register_lazy(
62
 
    ('bzrlib.merge_directive', '_BaseMergeDirective.hooks'),
 
61
    ('bzrlib.merge_directive', 'BaseMergeDirective.hooks'),
63
62
    'bzrlib.merge_directive', 'MergeDirectiveHooks')
64
63
 
65
64
 
277
276
 
278
277
  yyy.hooks.install_named_hook("xxx", ...)
279
278
 
280
 
See `Using hooks`_ in the User Guide for examples.
281
 
 
282
 
.. _Using hooks: ../user-guide/hooks.html
 
279
See :doc:`Using hooks<../user-guide/hooks>` in the User Guide for examples.
283
280
 
284
281
The class that contains each hook is given before the hooks it supplies. For
285
282
instance, BranchHooks as the class is the hooks class for