I am trying to clean up a repository using hg convert --filemap. Convert works fine with any option in filemap except rename. If I add any rename option to filemap then it fails at the first merge with abort: unable to convert merge commit since target parents do not merge cleanly.
I tried putting in filemap only a dummy rename foo bar option (none of the foo or bar paths actually exist in the repo) and I get the same result.
I tried putting in a real rename (existing 1st path), same happens. As fast as any rename gets in there, it breaks.
It this a bug? What am I doing wrong?
UPDATE: To reproduce:
Create file a, write something in it, commit. Update to parent, write something else in a, commit. Merge with other head, fix conflict by hand.
Filemap consists of one line and one line only: rename foo bar. Run hg convert. It will fail if the commit can't be automatically merged.
Can't reproduce error with filemap, defined according to extension wiki rules:
Original repo
Converted repo
Filemap