~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: ghigo
  • Date: 2007-07-26 22:38:49 UTC
  • mto: (2772.1.1 show-diff)
  • mto: This revision was merged to the branch mainline in revision 2773.
  • Revision ID: ghigo@venice-20070726223849-rn3omaw72fexxvmz
Small clean up

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
    :param infotext:    Text to be displayed at bottom of message
91
91
                        for the user's reference;
92
92
                        currently similar to 'bzr status'.
93
 
                        The string is unicode.
94
93
 
95
94
    :param ignoreline:  The separator to use above the infotext.
96
95
 
97
96
    :param start_message:   The text to place above the separator, if any.
98
97
                            This will not be removed from the message
99
98
                            after the user has edited it.
100
 
                            The string is unicode.
101
99
 
102
100
    :return:    commit message or None.
103
101
    """
208
206
        if start_message is not None:
209
207
            msgfile.write("%s\n" % start_message)
210
208
 
211
 
        if infotext is not None and len(infotext)>0:
 
209
        if infotext is not None and infotext != "":
212
210
            hasinfo = True
213
211
            msgfile.write("\n\n%s\n\n%s" %(ignoreline, infotext))
214
212
        else:
218
216
 
219
217
    return (msgfilename, hasinfo)
220
218
 
 
219
 
221
220
def make_commit_message_template(working_tree, specific_files):
222
221
    """Prepare a template file for a commit into a branch.
223
222