summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhg-fast-export.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/hg-fast-export.py b/hg-fast-export.py
index 6357b3f..6b4cc5b 100755
--- a/hg-fast-export.py
+++ b/hg-fast-export.py
@@ -198,6 +198,13 @@ def export_commit(ui,repo,revision,old_marks,max,count,authors,sob,brmap):
# manifest without expensively comparing checksums
f=repo.status(repo.lookup(parents[0]),revnode)[:3]
added,changed,removed=f[1],f[0],f[2]
+ for f in ctx.files():
+ if f not in man:
+ continue
+ rename = ctx.filectx(f).renamed()
+ if rename:
+ wr('R %s %s' % (rename[0], f))
+ removed.remove(rename[0])
type='simple delta'
else: # a merge with two parents
wr('merge %s' % revnum_to_revref(parents[1], old_marks))