~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: Vincent Ladeuil
  • Date: 2011-10-31 22:11:59 UTC
  • mfrom: (6236 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6252.
  • Revision ID: v.ladeuil+lp@free.fr-20111031221159-zmbd6izz1flzyisa
Merge trunk before submission

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
 
70
71
 
71
72
_builtin_known_hooks = (
72
73
    ('bzrlib.branch', 'Branch.hooks', 'BranchHooks'),
73
 
    ('bzrlib.bzrdir', 'BzrDir.hooks', 'BzrDirHooks'),
 
74
    ('bzrlib.controldir', 'ControlDir.hooks', 'ControlDirHooks'),
74
75
    ('bzrlib.commands', 'Command.hooks', 'CommandHooks'),
75
76
    ('bzrlib.config', 'ConfigHooks', '_ConfigHooks'),
76
77
    ('bzrlib.info', 'hooks', 'InfoHooks'),
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))