CVS -> HG convert - large repos....

Greg Ward greg-hg at gerg.ca
Tue Jan 4 14:43:47 CST 2011


On Tue, Jan 4, 2011 at 9:58 AM, Peter Toft <pto at linuxbog.dk> wrote:
> I have been experimenting quite a bit converting CVS repositories to
> Mercurial.
> With "minor/young" CVS repositories I find that "hg convert CVS_sandbox
> HG_sandbox"
> does the job well. Quite fast and painless.
>
> However for a big old CVS repository with ~2000 files - all in all ~90 MB. I
> have approx
> 30000 commits over the time, then the pain starts to kick in :)

Meh.  That's not big.  Big starts somewhere around 500 MB, 10000
files, and 50000 commits.  ;-)  But I'm not too surprised that "hg
convert" chokes on it.  The problem generally isn't size, it's tags
and branches.

The tool you are looking for is cvs2hg, my branch of cvs2svn with a
Mercurial backend.  Clone http://hg.gerg.ca/cvs2svn and read
README.cvs2hg.

> Anyone else with experiences with BIG cvs repos?
> It is smarter to convert CVS->SVN->HG as some have proposed?

That idea disgusted me so much that I wrote cvs2hg rather than have to
contemplate it any more.  ;-)

Greg


More information about the Mercurial mailing list