~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-30 11:45:54 UTC
  • mto: (5622.4.1 uninstall-hook)
  • mto: This revision was merged to the branch mainline in revision 5747.
  • Revision ID: jelmer@samba.org-20110330114554-zx7av89umf2dd9an
Don't require arguments to hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
297
297
    generate a commit message template
298
298
    """
299
299
 
300
 
    def __init__(self, module_name, member_name):
 
300
    def __init__(self):
301
301
        """Create the default hooks.
302
302
 
303
303
        These are all empty initially.
304
304
        """
305
 
        Hooks.__init__(self, module_name, member_name)
 
305
        Hooks.__init__(self, "bzrlib.msgeditor", "hooks")
306
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 "
314
314
            "on.", (1, 10))
315
315
 
316
316
 
317
 
hooks = MessageEditorHooks("bzrlib.msgeditor", "hooks")
 
317
hooks = MessageEditorHooks()
318
318
 
319
319
 
320
320
def generate_commit_message_template(commit, start_message=None):