Converting HUGE (12GB) SVN repo to Hg

Rock Hymas rock at fogcreek.com
Thu Apr 22 07:26:10 CDT 2010


Some things to consider:
You did the right thing by converting from a svnsync'd repository.
However, in all likelihood the conversion won't complete, hg will run out of memory first. You can rerun it over and over and that might work as long as there aren't any very large revisions.
You should really consider breaking up the repo into many smaller hg repositories. Converting from a svn url that points to a subdirectory should work, though depending on your repo layout, you might not get tags and branches.
Is your repo laid out using trunk/branches/tags at the root, or with project directories that each have trunk/branches/tags? If the latter, then you most certainly want to convert each project separately. 
Are there portions of the repo that are purely binary and/or compressed files? If so, you may want to consider moving them to a different system to manage, or even leaving them in subversion until the hg bfiles extension is in a good stable state. 

Rock

-----Original Message-----
From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com] On Behalf Of Philip Pemberton
Sent: Thursday, April 22, 2010 8:13 AM
To: mercurial at selenic.com
Subject: Converting HUGE (12GB) SVN repo to Hg

Hi guys,
   I'm trying to convert a 12GB (~160,000 commits) Subversion repository 
to Mercurial. The conversion has been running for about 10 hours now, 
and has converted... about 600 commits. This is on a quad-core Intel 
Q6600 box with 4GB of RAM, with the repository svnsync'd into a local 
directory. Platform is Linux x86_64.

   At this rate I'll be here until ((160e3 / 600) * 10) = 2,667 hours, 
or about 111 days if the machine is left running 24/7.

   Is there a faster way to do this?

Thanks,
-- 
Phil.
lists at philpem.me.uk
http://www.philpem.me.uk/
_______________________________________________
Mercurial mailing list
Mercurial at selenic.com
http://selenic.com/mailman/listinfo/mercurial


More information about the Mercurial mailing list