~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Jelmer Vernooij
  • Date: 2005-09-30 23:36:28 UTC
  • mto: This revision was merged to the branch mainline in revision 1414.
  • Revision ID: jelmer@samba.org-20050930233628-fe27550f18e9b4a0
Fix error message when an empty commit message was specified (when using an editor). Previously bzr warned that it wanted either --message or --file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1020
1020
            show_status(b, specific_files=selected_list,
1021
1021
                        to_file=catcher)
1022
1022
            message = edit_commit_message(catcher.getvalue())
 
1023
 
 
1024
            if message == "":
 
1025
                raise BzrCommandError("empty commit message specified")
1023
1026
            
1024
1027
            if message is None:
1025
1028
                raise BzrCommandError("please specify a commit message"