~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-05 13:58:33 UTC
  • mfrom: (5757 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5770.
  • Revision ID: jelmer@samba.org-20110405135833-lzphu3vh7vzubiz9
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    ui,
32
32
    )
33
33
from bzrlib.errors import BzrError, BadCommitMessageEncoding
34
 
from bzrlib.hooks import HookPoint, Hooks
 
34
from bzrlib.hooks import Hooks
35
35
 
36
36
 
37
37
def _get_editor():
302
302
 
303
303
        These are all empty initially.
304
304
        """
305
 
        Hooks.__init__(self)
306
 
        self.create_hook(HookPoint('commit_message_template',
 
305
        Hooks.__init__(self, "bzrlib.msgeditor", "hooks")
 
306
        self.add_hook('commit_message_template',
307
307
            "Called when a commit message is being generated. "
308
308
            "commit_message_template is called with the bzrlib.commit.Commit "
309
309
            "object and the message that is known so far. "
311
311
            "could be the same as it was given. When there are multiple "
312
312
            "hooks registered for commit_message_template, they are chained "
313
313
            "with the result from the first passed into the second, and so "
314
 
            "on.", (1, 10), None))
 
314
            "on.", (1, 10))
315
315
 
316
316
 
317
317
hooks = MessageEditorHooks()