/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to diff.py

  • Committer: John Arbash Meinel
  • Date: 2007-10-01 22:04:43 UTC
  • mto: (322.1.1 trunk) (330.3.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: john@arbash-meinel.com-20071001220443-q4jqupexf5wx2sqa
Start checking the diff view is correct.

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
 
214
214
    def show_diff(self, specific_files):
215
215
        s = StringIO()
216
 
        show_diff_trees(self.parent_tree, self.rev_tree, s, specific_files)
 
216
        show_diff_trees(self.parent_tree, self.rev_tree, s, specific_files,
 
217
                        old_label='', new_label='',
 
218
                        # path_encoding=sys.getdefaultencoding()
 
219
                        # The default is utf-8, but we interpret the file
 
220
                        # contents as getdefaultencoding(), so we should
 
221
                        # probably try to make the paths in the same encoding.
 
222
                        )
217
223
        self.buffer.set_text(s.getvalue().decode(sys.getdefaultencoding(), 'replace'))
218
224
 
219
225