From ed1ccdc915717b5e2f37ae7db59f4f8c30935aaf Mon Sep 17 00:00:00 2001 From: Ralph Meijer Date: Thu, 17 May 2012 23:48:42 +0200 Subject: Explicitly export renames. --- hg-fast-export.py | 7 +++++++ 1 file changed, 7 insertions(+) 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)) -- cgit v1.2.1