~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.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:
113
113
                lastline = nlines
114
114
            msg.append(line)
115
115
            
116
 
        if len(msg) == 0:
117
 
            return None
 
116
        if len(msg.strip()) == 0:
 
117
            return ""
118
118
        # delete empty lines at the end
119
119
        del msg[lastline:]
120
120
        # add a newline at the end, if needed