2016-04-22 22:45 GMT-03:00 Senthil Kumaran
Hi Brett,
On Fri, Apr 22, 2016 at 4:27 PM, Brett Cannon
wrote: Now that I'm comfortable declaring the code for the CLA bot finished (https://github.com/python/the-knights-who-say-ni), the next step is to finalize the command(s) we are going to use to convert hg repositories to git for migration to GitHub. Senthil, are you ready to make a final decision?
Yes. I did experiments while collating points from others with multiple tools and I found that hg-git could be suitable for our export. It won't be a single command due to the size of our repo. It will be a multi-step process.
1. Initialize local a bare git repo 2. Use hg-git to migrate from local hg to local git repo. (Ensure the migration was complete. With branches as desired). 3. And finally, push the local git repo, 1000s of commits at a time to remote repo.
Note that git-fast-import produces extremely suboptimal git packs. You should run "git gc --aggressive" after converting. In KDE I have seen post-svn2git repos shrink by two or three orders of magnitude by repacking them with git-gc. Maybe if you do that, there is no need to push in batches of 1000 commits. -- Nicolás