/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 bzr_commit_handler.py

  • Committer: Daniel Clemente
  • Date: 2009-10-30 21:39:44 UTC
  • mto: (0.64.289 trunk)
  • mto: This revision was merged to the branch mainline in revision 6631.
  • Revision ID: dcl441-bugs@yahoo.com-20091030213944-o765vvwz34c3fbut
use unicode paths when handling copy and rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
826
826
        self._delete_item(filecmd.path, self.basis_inventory)
827
827
 
828
828
    def copy_handler(self, filecmd):
829
 
        src_path = filecmd.src_path
830
 
        dest_path = filecmd.dest_path
 
829
        src_path = filecmd.src_path.decode("utf8")
 
830
        dest_path = filecmd.dest_path.decode("utf8")
831
831
        self.debug("copying %s to %s", src_path, dest_path)
832
832
        self._copy_item(src_path, dest_path, self.basis_inventory)
833
833
 
834
834
    def rename_handler(self, filecmd):
835
 
        old_path = filecmd.old_path
836
 
        new_path = filecmd.new_path
 
835
        old_path = filecmd.old_path.decode("utf8")
 
836
        new_path = filecmd.new_path.decode("utf8")
837
837
        self.debug("renaming %s to %s", old_path, new_path)
838
838
        self._rename_item(old_path, new_path, self.basis_inventory)
839
839