~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Jonathan Riddell
  • Date: 2011-05-25 15:20:26 UTC
  • mto: This revision was merged to the branch mainline in revision 5965.
  • Revision ID: jriddell@canonical.com-20110525152026-ojxh0vfx64x6uvq3
remove debugging

Show diffs side-by-side

added added

removed removed

Lines of Context:
323
323
 
324
324
hooks = MessageEditorHooks()
325
325
 
326
 
from bzrlib.trace import note
327
326
 
328
327
def set_commit_message(commit):
329
328
    """Sets the commit message.
330
329
    :param commit: Commit object for the active commit.
331
 
    :return: The commit message or None to continue using the message editor, properties.
 
330
    :return: The commit message or None to continue using the message editor
332
331
    """
333
332
    message = None
334
333
    for hook in hooks['set_commit_message']:
335
334
        message = hook(commit)
336
 
    note("set_commit_message: " + str(message))
337
335
    return message
338
336
 
339
337
def generate_commit_message_template(commit, start_message=None):
343
341
    :param start_message: Message to start with.
344
342
    :return: A start commit message or None for an empty start commit message.
345
343
    """
346
 
    note("generate_commit_message_template " + str(commit))
347
344
    start_message = None
348
345
    for hook in hooks['commit_message_template']:
349
346
        start_message = hook(commit, start_message)