~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Jelmer Vernooij
  • Date: 2005-10-02 13:14:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1414.
  • Revision ID: jelmer@samba.org-20051002131412-c44d6cd10336ac94
Add test for empty commit messages.

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.strip()) == 0:
 
116
        if len(msg) == 0:
117
117
            return ""
118
118
        # delete empty lines at the end
119
119
        del msg[lastline:]