/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: Robert Collins
  • Date: 2010-05-06 11:08:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506110810-h3j07fh5gmw54s25
Cleaner matcher matching revised unlocking protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    'bzrlib.smart.client', 'SmartClientHooks')
55
55
known_hooks.register_lazy(('bzrlib.smart.server', 'SmartTCPServer.hooks'),
56
56
    'bzrlib.smart.server', 'SmartServerHooks')
57
 
known_hooks.register_lazy(('bzrlib.status', 'hooks'),
58
 
    'bzrlib.status', 'StatusHooks')
59
57
known_hooks.register_lazy(
60
58
    ('bzrlib.version_info_formats.format_rio', 'RioVersionInfoBuilder.hooks'),
61
59
    'bzrlib.version_info_formats.format_rio', 'RioVersionInfoBuilderHooks')
181
179
    """A single hook that clients can register to be called back when it fires.
182
180
 
183
181
    :ivar name: The name of the hook.
184
 
    :ivar doc: The docs for using the hook.
185
182
    :ivar introduced: A version tuple specifying what version the hook was
186
183
        introduced in. None indicates an unknown version.
187
184
    :ivar deprecated: A version tuple specifying what version the hook was
188
185
        deprecated or superseded in. None indicates that the hook is not
189
186
        superseded or deprecated. If the hook is superseded then the doc
190
187
        should describe the recommended replacement hook to register for.
 
188
    :ivar doc: The docs for using the hook.
191
189
    """
192
190
 
193
191
    def __init__(self, name, doc, introduced, deprecated):
278
276
 
279
277
  yyy.hooks.install_named_hook("xxx", ...)
280
278
 
281
 
See :doc:`Using hooks<../user-guide/hooks>` in the User Guide for examples.
 
279
See `Using hooks`_ in the User Guide for examples.
 
280
 
 
281
.. _Using hooks: ../user-guide/hooks.html
282
282
 
283
283
The class that contains each hook is given before the hooks it supplies. For
284
284
instance, BranchHooks as the class is the hooks class for