remote-hg: remove files before modifications

Otherwise replacing a file with a directory doesn't work.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Felipe Contreras 2013-05-24 21:29:57 -05:00 коммит произвёл Junio C Hamano
Родитель d462469b4d
Коммит 66f46aa14f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -510,10 +510,10 @@ def export_ref(repo, name, kind, head):
if len(parents) > 1: if len(parents) > 1:
print "merge :%s" % (rev_to_mark(parents[1])) print "merge :%s" % (rev_to_mark(parents[1]))
for f in modified_final:
print "M %s :%u %s" % f
for f in removed: for f in removed:
print "D %s" % (fix_file_path(f)) print "D %s" % (fix_file_path(f))
for f in modified_final:
print "M %s :%u %s" % f
print print
progress = (rev - tip) progress = (rev - tip)