[core-workflow] Help needed: best way to convert hg repos to git?

Nicolás Alvarez nicolas.alvarez at gmail.com
Sat Feb 13 23:32:54 EST 2016


2016-02-14 1:27 GMT-03:00 Senthil Kumaran <senthil at uthcode.com>:
> On Fri, Feb 12, 2016 at 6:20 AM, Pierre-Yves David
> <pierre-yves.david at ens-lyon.org> wrote:
>>
>> We, at Facebook, have been happily using hg-git in production for
>> bidirectional conversion of repositories of insane sizes.
>
>
> I played with hg-git tool and was able to migrate the hg cpython default
> branch to git successfully. I have documented the steps here:
> https://github.com/orsenthil/cpython-hg-to-git/blob/master/README.md

Did you repack the git repository after importing with hg-git and
before pushing it? Every repository import tool I know of produces
extremely suboptimal pack files. fast-export initially gave me a 3GB
monstrosity before I ran "git gc --aggressive".

-- 
Nicolás


More information about the core-workflow mailing list