problems converting cvs to hg

Haszlakiewicz, Eric EHASZLA at transunion.com
Tue Feb 22 22:48:33 UTC 2011



>-----Original Message-----
>From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com]
>On Behalf Of Sam Steingold
>Sent: Tuesday, February 22, 2011 4:17 PM
>To: mercurial at selenic.com
>Subject: Re: problems converting cvs to hg
>
>> * Mads Kiilerich <znqf at xvvyrevpu.pbz> [2011-02-22 22:40:23 +0100]:
>>
>> cvs2hg uses more tricks and different approximations than hg convert and
>> will often work better.
>
>thanks,
>I will try that.
>
>>> how do I convert it to an hg repo?
>>
>> Last time you asked I spent time trying to reproduce the problem and
>> showed that conversion of an anonymous clone seemed to work. Why don't
>> you follow that lead?
>
>I tried a fresh anonymous checkout and got the same error as with the
>ssh-based one.
>Oh I see - you did not convert the _whole_ repo, just _one_ of the
>_several_ top level directories.
>OK, that seems to be (slowly!) working for me too.
>Now, I have several (e.g., two) top-level directories in the CVS repo.
>If I convert them to 2 separate mercurial repos ("clisp" and "www"),
>is there a way to produce a single mercurial repo "top" with two
>subdirectories clisp and www?

Depending on what you actually end up with, this might be as simple as simple pulling all the changesets from one into the other.
If the conversion didn't already create a "clisp" or "www" subdirectory in each repository, you can do a hg-to-hg conversion with a filemap and rewrite all the paths, and then pull one into the other.

The changeset history won't be interleaved quite like you would expect if the changes were being done in hg from the start, but perhaps that's acceptable for you.

eric



More information about the Mercurial mailing list