remote-hg: don't decode UTF-8 paths into Unicode objects

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>

Richard Hansen committed Nov 17, 2013 at 23:12 UTC c939d241673ad093336e936075a029127368d87e
1 file changed +1 -1
contrib/remote-helpers/git-remote-hg
+1 -1
@@ -747,7 +747,7 @@ def parse_commit(parser):
747 f = { 'deleted' : True }
748 else:
749 die('Unknown file command: %s' % line)
750 - path = c_style_unescape(path).decode('utf-8')
750 + path = c_style_unescape(path)
751 files[path] = f
752
753 # only export the commits if we are on an internal proxy repo