~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Jelmer Vernooij
  • Date: 2011-08-17 09:27:29 UTC
  • mto: This revision was merged to the branch mainline in revision 6085.
  • Revision ID: jelmer@samba.org-20110817092729-1sg4zs7ckiucqe6n
Use utf8 as encoding for urls passed to note().

Show diffs side-by-side

added added

removed removed

Lines of Context:
634
634
            old_path = self.root_transport.abspath('.bzr')
635
635
            backup_dir = self._available_backup_name('backup.bzr')
636
636
            new_path = self.root_transport.abspath(backup_dir)
637
 
            ui_encoding = osutils.get_terminal_encoding()
638
637
            ui.ui_factory.note('making backup of %s\n  to %s' % (
639
 
                urlutils.unescape_for_display(old_path, ui_encoding),
640
 
                urlutils.unescape_for_display(new_path, ui_encoding)))
 
638
                urlutils.unescape_for_display(old_path, 'utf-8'),
 
639
                urlutils.unescape_for_display(new_path, 'utf-8')))
641
640
            self.root_transport.copy_tree('.bzr', backup_dir)
642
641
            return (old_path, new_path)
643
642
        finally: