~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: Martin Pool
  • Date: 2010-04-21 11:27:04 UTC
  • mto: This revision was merged to the branch mainline in revision 5189.
  • Revision ID: mbp@canonical.com-20100421112704-zijso22b6pdevrxy
Simplify various code to use user_url

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
21
22
lazy_import(globals(), """
22
23
import textwrap
23
24
 
276
277
 
277
278
  yyy.hooks.install_named_hook("xxx", ...)
278
279
 
279
 
See :doc:`Using hooks<../user-guide/hooks>` in the User Guide for examples.
 
280
See `Using hooks`_ in the User Guide for examples.
 
281
 
 
282
.. _Using hooks: ../user-guide/hooks.html
280
283
 
281
284
The class that contains each hook is given before the hooks it supplies. For
282
285
instance, BranchHooks as the class is the hooks class for