~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: ghigo
  • Date: 2007-08-24 16:43:17 UTC
  • mto: (2772.1.1 show-diff)
  • mto: This revision was merged to the branch mainline in revision 2773.
  • Revision ID: ghigo@venice-20070824164317-rv1ybnpqv6iorw3e
- Updated the identation on the basis of Aaron suggestions
- Now a default value is passed directly in the function definition

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
 
237
237
 
238
238
def make_commit_message_template_encoded(working_tree, specific_files,
239
 
                                         diff=None, output_encoding=None):
 
239
                                         diff=None, output_encoding='utf-8'):
240
240
    """Prepare a template file for a commit into a branch.
241
241
 
242
242
    Returns an encoded string.
249
249
    from StringIO import StringIO       # must be unicode-safe
250
250
    from bzrlib.diff import show_diff_trees
251
251
 
252
 
    if output_encoding is None:
253
 
        output_encoding = 'utf-8'
254
 
 
255
252
    template = make_commit_message_template(working_tree, specific_files)
256
253
    template = template.encode(output_encoding, "replace")
257
254