Mercurial:将 Windows cvs 存储库转换为 Mercurial 时出现问题
我正在尝试将现有的 Windows CVS 存储库转换为 Mercurial,并收到以下响应和错误:
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')
这是背景:
存储库是使用以下命令创建的 TortoiseCVS 所以我相信它是 实际上是 cvsnt。
我可以从
正确结帐 使用命令存储库
线或 TortoiseCVS gui,所以我
认为它设置正确。我正在尝试转换工作副本, 不是存储库本身
我正在运行 Windows 7,64 位
我已经安装了 TortoiseHG 并启用了 转换扩展。
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 itselfI’m running Windows 7, 64-bit
I’ve installed TortoiseHG and enabled
the convert extension.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
作者说:
这使得您所做的事情变得不可能。您需要访问存储库,而不是签出它。 CVS 结帐(与 Mercurial 结帐不同)不包括完整的历史记录。只需结帐即可导入一两个快照。
Author said:
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.
我遇到了类似的问题,并通过将 CVSROOT(环境变量)从本地文件夹更改为使用 :pserver 来解决它,如下所示:
这适用于 CVSNT,或者至少对我有用。
I had a similar problem, and resolved it by changing the CVSROOT (environment variable) from a local folder to using :pserver, like this:
This works on CVSNT, or at least it did for me.
我正在做你想做的事情。我假设您已经安装了 cvsps 并在 .hgrc 中正确配置了转换扩展?
您的转换命令可能是问题所在。您正在指定要转换的模块的路径,而不是模块名称本身。
请尝试以下操作:
上面将创建 Hg 存储库作为“shelter-hg”。您也可以指定 Hg 存储库所在的位置:
希望这会有所帮助,
mG。
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:
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:
Hope this helps,
mG.