problems converting from CVS to mercurial (via fastimport)

Thomas Klausner tk at giga.or.at
Mon Jun 8 14:57:42 UTC 2015


On Mon, Jun 08, 2015 at 09:19:23AM -0500, Benjamin Fritz wrote:
> Have you tried converting directly from CVS to Mercurial with the Convert
> extension, which is distributed with Mercurial?
> https://mercurial.selenic.com/wiki/ConvertExtension
> 
> If you've tried it and it doesn't meet your needs, then what do you need it
> to do that it doesn't do?

I hadn't tried, but now I did. It fails with:

43913 s/netbsd.org/NetBSD.org/
cvs server: cvs checkout: `wip/gcl/Makefile' is no longer in the repository

abort: malformed response from CVS

If you want to try, the repository is available:

rsync -Dlrt --del rsync://pkgsrc-wip.cvs.sourceforge.net/cvsroot/pkgsrc-wip/ .

I'm just interested in the 'wip' module.

> If you have not tried that, I'd suggest going that way first, since right
> now you have multiple possible places where errors can be introduced (and
> it's a very roundabout path anyway). From what I see you are doing:
> 
> CVS -> Fossil -> Fastimport? -> Git -> Mercurial

Yes, that's correct.

> But you could instead do:
> 
> CVS -> Mercurial

If the tools work, I'm happy to go that way, of course.

The wip repository is special since lots of 'cvs import' commands
happened, which were not really necessary but policy at that time; now
'cvs add' is used. pkgsrc is the same, and cvs2fossil was written to
handle that repository, that's why I started with it (and it handles
wip fine).

Cheers,
 Thomas



More information about the Mercurial mailing list