/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

[merge] Fix for bug 354036 ErrorFromSmartServer - AbsentContentFactory object
has no attribute 'get_bytes_as' exception while pulling from Launchpad
(Jean-Francois Roy, Andrew Bennetts, Robert Collins)

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, member name) which is the hook point
 
36
# module where the specific hooks are defined
 
37
# callable to get the empty specific Hooks for that attribute
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'),
45
51
    'bzrlib.smart.client', 'SmartClientHooks')
46
52
known_hooks.register_lazy(('bzrlib.smart.server', 'SmartTCPServer.hooks'),
47
53
    'bzrlib.smart.server', 'SmartServerHooks')
 
54
known_hooks.register_lazy(
 
55
    ('bzrlib.version_info_formats.format_rio', 'RioVersionInfoBuilder.hooks'),
 
56
    'bzrlib.version_info_formats.format_rio', 'RioVersionInfoBuilderHooks')
48
57
 
49
58
 
50
59
def known_hooks_key_to_object((module_name, member_name)):