~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/shelf_ui.py

  • Committer: Andrej A Antonov
  • Date: 2010-09-20 23:15:01 UTC
  • mto: This revision was merged to the branch mainline in revision 5453.
  • Revision ID: polymorphm@gmail.com-20100920231501-ysl50059tdf5y7lo
fixed bug: `unshelve --preview` fails with unicode error

Show diffs side-by-side

added added

removed removed

Lines of Context:
493
493
        tt = tree_merger.make_preview_transform()
494
494
        new_tree = tt.get_preview_tree()
495
495
        if self.write_diff_to is None:
496
 
            self.write_diff_to = ui.ui_factory.make_output_stream()
 
496
            self.write_diff_to = ui.ui_factory.make_output_stream(encoding_type='exact')
497
497
        path_encoding = osutils.get_diff_header_encoding()
498
498
        diff.show_diff_trees(merger.this_tree, new_tree, self.write_diff_to,
499
499
            path_encoding=path_encoding)