remote-hg: don't decode UTF-8 paths into Unicode objects
authorRichard Hansen <rhansen@bbn.com>
Mon, 18 Nov 2013 04:12:42 +0000 (23:12 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Nov 2013 20:09:50 +0000 (12:09 -0800)
The internal mercurial API expects ordinary 8-bit string objects, not
Unicode string objects. With this change, the test-hg.sh unit tests
pass again.

Signed-off-by: Richard Hansen <rhansen@bbn.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/git-remote-hg
index 85abbedb1c75f67a9978388d8642b5cc265c45fc..1c713e0af1894edba1166898c4301932fd7f2595 100755 (executable)
@@ -725,7 +725,7 @@ def parse_commit(parser):
             f = { 'deleted' : True }
         else:
             die('Unknown file command: %s' % line)
-        path = c_style_unescape(path).decode('utf-8')
+        path = c_style_unescape(path)
         files[path] = f
 
     # only export the commits if we are on an internal proxy repo