/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/log.py

  • Committer: Jelmer Vernooij
  • Date: 2018-07-17 21:20:55 UTC
  • mto: (7045.3.3 python3-r)
  • mto: This revision was merged to the branch mainline in revision 7050.
  • Revision ID: jelmer@jelmer.uk-20180717212055-apkv1s70oo6wpi6o
Fix a few more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1545
1545
        return lines
1546
1546
 
1547
1547
    def show_diff(self, to_file, diff, indent):
1548
 
        for l in diff.rstrip().split('\n'):
1549
 
            to_file.write(indent + '%s\n' % (l,))
 
1548
        encoding = get_terminal_encoding()
 
1549
        for l in diff.rstrip().split(b'\n'):
 
1550
            to_file.write(indent + l.decode(encoding) + '\n')
1550
1551
 
1551
1552
 
1552
1553
# Separator between revisions in long format