~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: John Arbash Meinel
  • Date: 2010-09-25 20:08:01 UTC
  • mfrom: (5444 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5445.
  • Revision ID: john@arbash-meinel.com-20100925200801-7uf0ux3uwxo9i3x0
Merge bzr.dev 5444 to resolve some small text conflicts.

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')
57
59
known_hooks.register_lazy(
58
60
    ('bzrlib.version_info_formats.format_rio', 'RioVersionInfoBuilder.hooks'),
59
61
    'bzrlib.version_info_formats.format_rio', 'RioVersionInfoBuilderHooks')
179
181
    """A single hook that clients can register to be called back when it fires.
180
182
 
181
183
    :ivar name: The name of the hook.
 
184
    :ivar doc: The docs for using the hook.
182
185
    :ivar introduced: A version tuple specifying what version the hook was
183
186
        introduced in. None indicates an unknown version.
184
187
    :ivar deprecated: A version tuple specifying what version the hook was
185
188
        deprecated or superseded in. None indicates that the hook is not
186
189
        superseded or deprecated. If the hook is superseded then the doc
187
190
        should describe the recommended replacement hook to register for.
188
 
    :ivar doc: The docs for using the hook.
189
191
    """
190
192
 
191
193
    def __init__(self, name, doc, introduced, deprecated):