remote-hg: fix for files with spaces

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Nov 28, 2012 at 02:01 UTC 418673c4bc48c0b54856449739023b4f978ea235
1 file changed +1 -1
contrib/remote-helpers/git-remote-hg
+1 -1
@@ -565,7 +565,7 @@ def parse_commit(parser):
565
566 for line in parser:
567 if parser.check('M'):
568 - t, m, mark_ref, path = line.split(' ')
568 + t, m, mark_ref, path = line.split(' ', 3)
569 mark = int(mark_ref[1:])
570 f = { 'mode' : hgmode(m), 'data' : blob_marks[mark] }
571 elif parser.check('D'):