Mercurial:将 Windows cvs 存储库转换为 Mercurial 时出现问题

发布于 2024-08-15 17:23:25 字数 687 浏览 1 评论 0原文

我正在尝试将现有的 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 itself

  • I’m running Windows 7, 64-bit

  • I’ve installed TortoiseHG and enabled
    the convert extension.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

人│生佛魔见 2024-08-22 17:23:25

作者说:

我正在尝试转换工作副本,
不是存储库本身

这使得您所做的事情变得不可能。您需要访问存储库,而不是签出它。 CVS 结帐(与 Mercurial 结帐不同)不包括完整的历史记录。只需结帐即可导入一两个快照。

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.

月亮是我掰弯的 2024-08-22 17:23:25

我遇到了类似的问题,并通过将 CVSROOT(环境变量)从本地文件夹更改为使用 :pserver 来解决它,如下所示:

:pserver:username@computername:/CVS

这适用于 CVSNT,或者至少对我有用。

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.

全部不再 2024-08-22 17:23:25

我正在做你想做的事情。我假设您已经安装了 cvsps 并在 .hgrc 中正确配置了转换扩展?

您的转换命令可能是问题所在。您正在指定要转换的模块的路径,而不是模块名称本身。

请尝试以下操作:

c:
cd \users\jeff\webs\shelter-cvs\
hg 转换庇护所

上面将创建 Hg 存储库作为“shelter-hg”。您也可以指定 Hg 存储库所在的位置:

cd \users\jeff\webs
mdir hg_repo
cd 庇护所-cvs
hg 转换庇护所 ..\hg_repo\shelter

希望这会有所帮助,

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:

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文