remote-bzr: add utf-8 support for fetching

[fc: added tests]

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Timotheus Pokorra
2013-04-05 21:49:22 -06:00
committed by Junio C Hamano
parent 8954441ac7
commit 5445b24e22
2 changed files with 27 additions and 2 deletions

View File

@ -223,7 +223,7 @@ def export_files(tree, files):
# is the blog already exported?
if h in filenodes:
mark = filenodes[h]
final.append((mode, mark, path))
final.append((mode, mark, path.encode('utf-8')))
continue
d = tree.get_file_text(fid)
@ -240,7 +240,7 @@ def export_files(tree, files):
print "data %d" % len(d)
print d
final.append((mode, mark, path))
final.append((mode, mark, path.encode('utf-8')))
return final