cvs2svn/cvs2git version 2.2.0 has been released
Michael Haggerty
mhagger at alum.mit.edu
Mon Nov 24 08:10:15 UTC 2008
Kurt Granroth wrote:
> This announcement piqued my interest as I've been searching for the best
> way to convert from CVS to Hg for awhile now. [...]
>
> I did find two possibilities:
>
> 1. 'hg fastimport'
> http://hg.opensource.lshift.net/hg-fastimport/
>
> This seems the most promising. However, it hasn't had a lot of work
> done to it and the README has this:
>
> WARNING: this tool is very incomplete and barely tested. It is
> currently intended for active developers only.
"hg fastimport" is the one that I was referring to. You are correct
that development seems to be currently inactive. The last I heard, it
worked for some things. But git-fast-import format is pretty
straightforward and very well documented [1], so I would assume that
anybody who is interested could finish the above implementation or even
implement hg fastimport from scratch in a day or two of work.
I have already built some hg-specific features into cvs2svn/cvs2git, and
if other minor changes are necessary I would try to help with that.
> 2. 'convert-repo'
> http://www.selenic.com/mercurial/wiki/index.cgi/convert-repo
>
> This appears to just be a wrapper around 'hg convert'? As far as I
> know, 'hg convert' doesn't support the 'fast-import' format at all.
AFAIK both convert-repo and "hg convert" are based on cvsps, which means
that there is no way that they can be robust conversion tools. cvsps
simply does not provide the information that is needed for an accurate
conversion from CVS [2], and indeed was never intended to be used for
that purpose. The theory is also verified by experience [3].
Michael
[1] http://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html
[2] http://selenic.com/pipermail/mercurial-devel/2008-February/004975.html
[3] http://cvs2svn.tigris.org/servlets/ReadMsg?list=dev&msgNo=2172
More information about the Mercurial
mailing list