summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Clemente <dcl441-bugs@yahoo.com>2009-10-30 22:39:44 +0100
committerDaniel Clemente <dcl441-bugs@yahoo.com>2009-10-30 22:39:44 +0100
commit7fe765d6a30f07feb88de4c612d2cece83aadd97 (patch)
tree87bdb163d504da18244fd3e11de205413ed78b85
parentb172e6f1208046901af05c617c0932cd0bacf21b (diff)
downloadbzr-fastimport-7fe765d6a30f07feb88de4c612d2cece83aadd97.tar.gz
use unicode paths when handling copy and rename
-rw-r--r--bzr_commit_handler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bzr_commit_handler.py b/bzr_commit_handler.py
index 06bec0f..1b1fcea 100644
--- a/bzr_commit_handler.py
+++ b/bzr_commit_handler.py
@@ -826,14 +826,14 @@ class InventoryDeltaCommitHandler(GenericCommitHandler):
self._delete_item(filecmd.path, self.basis_inventory)
def copy_handler(self, filecmd):
- src_path = filecmd.src_path
- dest_path = filecmd.dest_path
+ src_path = filecmd.src_path.decode("utf8")
+ dest_path = filecmd.dest_path.decode("utf8")
self.debug("copying %s to %s", src_path, dest_path)
self._copy_item(src_path, dest_path, self.basis_inventory)
def rename_handler(self, filecmd):
- old_path = filecmd.old_path
- new_path = filecmd.new_path
+ old_path = filecmd.old_path.decode("utf8")
+ new_path = filecmd.new_path.decode("utf8")
self.debug("renaming %s to %s", old_path, new_path)
self._rename_item(old_path, new_path, self.basis_inventory)