/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/commands.py

Merged in bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
from bzrlib import registry
52
52
# Compatibility
53
 
from bzrlib.hooks import Hooks
 
53
from bzrlib.hooks import HookPoint, Hooks
54
54
from bzrlib.option import Option
55
55
 
56
56
 
591
591
        notified.
592
592
        """
593
593
        Hooks.__init__(self)
594
 
        # Introduced in 1.13:
595
 
        # invoked after creating a command object to allow modifications such
596
 
        # as adding or removing options, docs etc. Invoked with the command
597
 
        # object.
598
 
        self['extend_command'] = []
 
594
        self.create_hook(HookPoint('extend_command',
 
595
            "Called after creating a command object to allow modifications "
 
596
            "such as adding or removing options, docs etc. Called with the "
 
597
            "new bzrlib.commands.Command object.", (1, 13), None))
599
598
 
600
599
Command.hooks = CommandHooks()
601
600