Converting from CVSNT

Michael Haggerty mhagger at alum.mit.edu
Thu Jun 25 14:29:32 CDT 2009


Giampaolo Fadel wrote:
> Thanks Greg for the answer
>> Also, be warned that it's extremely difficult to convert a CVS
>> repository with branches or tags, and hg convert does not always get
>> it right.  If you care about an accurate conversion of history, you
>> might want to look at a two-step process starting with cvs2svn.
> 
> I've already tried cvs2svn and then convert to hg but the result was
> worst, the result was about 20
> unlabelled branch that in the original repository doesn't exist.

I'm the maintainer of cvs2svn.  Did the unlabeled branches appear in
SVN, or only after converting to mercurial?  If the former, I would
appreciate it if you would report this as a bug on the cvs2svn mailing list.

More likely, your CVSNT repository had unlabeled branches before the
conversion.  This happens frequently when people delete the label of a
CVS branch without deleting the branch itself.  You can configure
cvs2svn to ignore unlabeled branches if you prefer.

With the latest trunk version of cvs2svn, it should also be possible to
convert directly from CVS to the hg-fastimport format by starting from
the "cvs2hg-example.options" options file.  However, there haven't been
many reports about how well this works, so if you try this, please
report your experiences.

Michael


More information about the Mercurial mailing list