~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-09 20:23:07 UTC
  • mfrom: (4265.1.4 bbc-merge)
  • Revision ID: pqm@pqm.ubuntu.com-20090409202307-n0depb16qepoe21o
(jam) Change _fetch_uses_deltas = False for CHK repos until we can
        write a better fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    'BzrDirHooks')
42
42
known_hooks.register_lazy(('bzrlib.commands', 'Command.hooks'),
43
43
    'bzrlib.commands', 'CommandHooks')
44
 
known_hooks.register_lazy(('bzrlib.info', 'hooks'),
45
 
    'bzrlib.info', 'InfoHooks')
46
44
known_hooks.register_lazy(('bzrlib.lock', 'Lock.hooks'), 'bzrlib.lock',
47
45
    'LockHooks')
48
46
known_hooks.register_lazy(('bzrlib.msgeditor', 'hooks'), 'bzrlib.msgeditor',
56
54
known_hooks.register_lazy(
57
55
    ('bzrlib.version_info_formats.format_rio', 'RioVersionInfoBuilder.hooks'),
58
56
    'bzrlib.version_info_formats.format_rio', 'RioVersionInfoBuilderHooks')
59
 
known_hooks.register_lazy(
60
 
    ('bzrlib.merge_directive', '_BaseMergeDirective.hooks'),
61
 
    'bzrlib.merge_directive', 'MergeDirectiveHooks')
62
57
 
63
58
 
64
59
def known_hooks_key_to_object((module_name, member_name)):
181
176
    :ivar introduced: A version tuple specifying what version the hook was
182
177
        introduced in. None indicates an unknown version.
183
178
    :ivar deprecated: A version tuple specifying what version the hook was
184
 
        deprecated or superseded in. None indicates that the hook is not
185
 
        superseded or deprecated. If the hook is superseded then the doc
 
179
        deprecated or superceded in. None indicates that the hook is not
 
180
        superceded or deprecated. If the hook is superceded then the doc
186
181
        should describe the recommended replacement hook to register for.
187
182
    :ivar doc: The docs for using the hook.
188
183
    """
223
218
            deprecated_string = 'Not deprecated'
224
219
        strings.append('Deprecated in: %s' % deprecated_string)
225
220
        strings.append('')
226
 
        strings.extend(textwrap.wrap(self.__doc__,
227
 
            break_long_words=False))
 
221
        strings.extend(textwrap.wrap(self.__doc__))
228
222
        strings.append('')
229
223
        return '\n'.join(strings)
230
224