summaryrefslogtreecommitdiff
path: root/bzr_commit_handler.py
diff options
context:
space:
mode:
authorDaniel Clemente <dcl441-bugs@yahoo.com>2009-10-30 20:05:41 +0100
committerDaniel Clemente <dcl441-bugs@yahoo.com>2009-10-30 20:05:41 +0100
commitb172e6f1208046901af05c617c0932cd0bacf21b (patch)
tree49d674d948b60da426c1c215b5e15e3e5a78cc94 /bzr_commit_handler.py
parent1d07ce54fba8141889b64ab1877ba8179753d221 (diff)
downloadbzr-fastimport-b172e6f1208046901af05c617c0932cd0bacf21b.tar.gz
pass unicode object (rather than str) to match CHKInventory._entry_to_bytes requirements
Diffstat (limited to 'bzr_commit_handler.py')
-rw-r--r--bzr_commit_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bzr_commit_handler.py b/bzr_commit_handler.py
index 31dd578..06bec0f 100644
--- a/bzr_commit_handler.py
+++ b/bzr_commit_handler.py
@@ -295,7 +295,7 @@ class GenericCommitHandler(processor.CommitHandler):
# make sure the cache used by get_lines knows that
self.lines_for_commit[file_id] = []
elif kind == 'symlink':
- ie.symlink_target = data.encode('utf8')
+ ie.symlink_target = data.decode('utf8')
# There are no lines stored for a symlink so
# make sure the cache used by get_lines knows that
self.lines_for_commit[file_id] = []