~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: James Westby
  • Date: 2007-02-04 21:58:50 UTC
  • mto: (2304.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2305.
  • Revision ID: jw+debian@jameswestby.net-20070204215850-64v3uwm4lc906nyy
Allow an empty start message.

Following comments from Robert the start_message is now allowed to be empty.
The tests are also split out more.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
        tmp_fileno, msgfilename = tempfile.mkstemp(prefix='bzr_log.', dir=u'.')
107
107
        msgfile = os.close(tmp_fileno)
108
108
        havefile = False
109
 
        if start_message is not None and start_message != "":
 
109
        if start_message is not None:
110
110
            havefile = True
111
111
            msgfile = file(msgfilename, "w")
112
112
            msgfile.write("%s\n" % start_message.encode(