~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: James Westby
  • Date: 2009-04-02 22:28:50 UTC
  • mto: This revision was merged to the branch mainline in revision 4263.
  • Revision ID: james.westby@canonical.com-20090402222850-gmc5y4mq1usjf4x5
Add msgeditor hooks to known_hooks.

This means that the testsuite prevents any registered hooks from triggering
during the testsuite.

It also adds comment to try and give the meaning of the parameters.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
 
33
33
known_hooks = registry.Registry()
 
34
# known_hooks registry contains
 
35
# tuple of module, hook location within that module
 
36
# module where the specific hooks are defined
 
37
# class for the specific hooks
34
38
known_hooks.register_lazy(('bzrlib.branch', 'Branch.hooks'), 'bzrlib.branch',
35
39
    'BranchHooks')
36
40
known_hooks.register_lazy(('bzrlib.bzrdir', 'BzrDir.hooks'), 'bzrlib.bzrdir',
39
43
    'bzrlib.commands', 'CommandHooks')
40
44
known_hooks.register_lazy(('bzrlib.lock', 'Lock.hooks'), 'bzrlib.lock',
41
45
    'LockHooks')
 
46
known_hooks.register_lazy(('bzrlib.msgeditor', 'hooks'), 'bzrlib.msgeditor',
 
47
    'MessageEditorHooks')
42
48
known_hooks.register_lazy(('bzrlib.mutabletree', 'MutableTree.hooks'),
43
49
    'bzrlib.mutabletree', 'MutableTreeHooks')
44
50
known_hooks.register_lazy(('bzrlib.smart.client', '_SmartClient.hooks'),