hg convert from git doesn't follow renames

Chad Dombrova chadrik at gmail.com
Tue Nov 3 09:40:10 CST 2009


>> Was looking to switch my repo over from git to hg, but I ran into a
>> bit of a snag - it seems hg convert from git doesn't preserve  
>> renaming
>> information.
>
> One possibility is to use fastimport.  That is, dump the git repo with
> 'git fast-export', then use the hg-fastimport extension
> (http://mercurial.selenic.com/wiki/FastImportExtension) to load it
> into Mercurial.  *If* it works, I think it will do a more accurate
> conversion than hg convert does.

i've tried hg-fastimport/export, the hg-git extension, and hg convert,  
and none of them implement renames.  is this something that is  
inherently difficult to do or just something that is easily  
forgotten?  it's frightening to me to think that every person who has  
converted to hg from git has permanently butchered their history.

-chad




More information about the Mercurial mailing list