~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-11-11 02:39:42 UTC
  • mfrom: (3825.2.3 hook)
  • Revision ID: pqm@pqm.ubuntu.com-20081111023942-ir0du8iel76giykh
(Jelmer) Add simple commit message template hook.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2374
2374
        )
2375
2375
        from bzrlib.msgeditor import (
2376
2376
            edit_commit_message_encoded,
 
2377
            generate_commit_message_template,
2377
2378
            make_commit_message_template_encoded
2378
2379
        )
2379
2380
 
2408
2409
                t = make_commit_message_template_encoded(tree,
2409
2410
                        selected_list, diff=show_diff,
2410
2411
                        output_encoding=osutils.get_user_encoding())
2411
 
                my_message = edit_commit_message_encoded(t)
 
2412
                start_message = generate_commit_message_template(commit_obj)
 
2413
                my_message = edit_commit_message_encoded(t, 
 
2414
                    start_message=start_message)
2412
2415
                if my_message is None:
2413
2416
                    raise errors.BzrCommandError("please specify a commit"
2414
2417
                        " message with either --message or --file")