changeset 8783:6556d4145122

bzr convert: restore paths to source encoding. Closes issue1692.
author Brendan Cully <brendan@kublai.com>
date Thu, 11 Jun 2009 12:18:40 -0700
parents 31c90d12f86c
children 9154c79c67cc
files hgext/convert/bzr.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/bzr.py	Mon Jun 08 18:16:32 2009 -0500
+++ b/hgext/convert/bzr.py	Thu Jun 11 12:18:40 2009 -0700
@@ -72,7 +72,7 @@
 
     def getfile(self, name, rev):
         revtree = self.sourcerepo.revision_tree(rev)
-        fileid = revtree.path2id(name)
+        fileid = revtree.path2id(name.decode(self.encoding or 'utf-8'))
         kind = None
         if fileid is not None:
             kind = revtree.kind(fileid)