Mercurial: Problem converting Windows cvs repository to mercurial
I’m trying to convert an existing Windows CVS repository to Mercurial and getting 开发者_开发技巧the following response and error:
C:\Windows\system32>hg convert c:\users\jeff\webs\shelter-cvs\shelter
assuming destination shelter-hg
initializing destination shelter-hg repository
connecting to :local:c:\cvs
abort: unexpected response from CVS server (expected "Valid-requests", but got 'E cvs [server aborted]: c:\\cvs: no such repository\n')
Here’s the background:
The repository was created with TortoiseCVS so I believe it’s actually cvsnt.
I can properly checkout from the
repository using either the command line or the TortoiseCVS gui, so I think it is set up correctly.I'm trying to convert a working copy, not the repository itself
I’m running Windows 7, 64-bit
I’ve installed TortoiseHG and enabled the convert extension.
Author said:
I'm trying to convert a working copy, not the repository itself
That makes what you're doing not possible. You need access to the repo, not to a checkout of it. CVS checkouts (unlike mercurial checkouts) don't include full history. The best you can do with just a checkout is to import a snapshot or two.
I had a similar problem, and resolved it by changing the CVSROOT (environment variable) from a local folder to using :pserver, like this:
:pserver:username@computername:/CVS
This works on CVSNT, or at least it did for me.
I am in the process of doing exactly what you are trying to do. I assume you have installed cvsps and configured the convert extension in your .hgrc correctly?
Your command though for conversion is likely the problem. You are specifying the path to the module you want to convert, not the module name itself.
Try the following:
c: cd \users\jeff\webs\shelter-cvs\ hg convert shelter
The above will create the Hg repository as "shelter-hg". You could alternatively specify where you'd like to have the Hg repository go with:
cd \users\jeff\webs mdir hg_repo cd shelter-cvs hg convert shelter ..\hg_repo\shelter
Hope this helps,
mG.
精彩评论