~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

Abbreviate pack_stat struct format to '>6L'

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    errors,
31
31
    pyutils,
32
32
    )
 
33
from bzrlib.i18n import gettext
33
34
""")
34
35
 
35
36
 
72
73
    ('bzrlib.branch', 'Branch.hooks', 'BranchHooks'),
73
74
    ('bzrlib.bzrdir', 'BzrDir.hooks', 'BzrDirHooks'),
74
75
    ('bzrlib.commands', 'Command.hooks', 'CommandHooks'),
 
76
    ('bzrlib.config', 'ConfigHooks', '_ConfigHooks'),
75
77
    ('bzrlib.info', 'hooks', 'InfoHooks'),
76
78
    ('bzrlib.lock', 'Lock.hooks', 'LockHooks'),
77
79
    ('bzrlib.merge', 'Merger.hooks', 'MergeHooks'),
256
258
        try:
257
259
            uninstall = getattr(hook, "uninstall")
258
260
        except AttributeError:
259
 
            raise errors.UnsupportedOperation(self.install_named_hook_lazy,
260
 
                self)
 
261
            raise errors.UnsupportedOperation(self.uninstall_named_hook, self)
261
262
        else:
262
263
            uninstall(label)
263
264
 
310
311
            introduced_string = _format_version_tuple(self.introduced)
311
312
        else:
312
313
            introduced_string = 'unknown'
313
 
        strings.append('Introduced in: %s' % introduced_string)
 
314
        strings.append(gettext('Introduced in: %s') % introduced_string)
314
315
        if self.deprecated:
315
316
            deprecated_string = _format_version_tuple(self.deprecated)
316
 
            strings.append('Deprecated in: %s' % deprecated_string)
 
317
            strings.append(gettext('Deprecated in: %s') % deprecated_string)
317
318
        strings.append('')
318
319
        strings.extend(textwrap.wrap(self.__doc__,
319
320
            break_long_words=False))