Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将CV转换为mercurial_Mercurial_Cvs - Fatal编程技术网

将CV转换为mercurial

将CV转换为mercurial,mercurial,cvs,Mercurial,Cvs,我正在尝试将CVS存储库转换为mercurial,但无法使其工作 我从一个干净的结账台开始: cvs -d :sspi;username=xxx;hostname=yyy.local:/cvsrepos checkout repo 哪个很好 然后我会: hg convert . 但它在以下方面失败了: assuming destination .-hg initializing destination .-hg repository connecting to :sspi;username=

我正在尝试将CVS存储库转换为mercurial,但无法使其工作

我从一个干净的结账台开始:

cvs -d :sspi;username=xxx;hostname=yyy.local:/cvsrepos checkout repo
哪个很好

然后我会:

hg convert .
但它在以下方面失败了:

assuming destination .-hg
initializing destination .-hg repository
connecting to :sspi;username=xxx;hostname=yyy.local:/cvsrepos
abort: unexpected response from CVS server (expected "Valid-requests", but got 'E cvs [server aborted]: Root :sspi;username=xxx;hostname=yyy.local:/cvsrepos must be an absolute pathname\n')
我在Windows7上运行cvsnt

编辑:
对此进行了进一步的研究,mercurial似乎启动了一个本地服务器
cvs服务器
,然后与该实例通信,而不是与远程服务器通信

我基于以下观察结果:

  • 我创建了一个cvs.bat文件,将命令行参数发送到一个文件。该文件显示参数“server”
  • 进程监视器显示hg.exe试图打开该文件
    C:\cvstest \:sspi;用户名=xxx;hostname=yyy.local:\cvsrepos
    当然会失败
  • 是否hg不理解sspi连接字符串

    编辑2:

    这不是一个解决方案,但我找到了一个解决方法:将完整的远程存储库复制到我的计算机上,然后:

    cvs -d :local:\localcopyofrepo checkout repo
    hg convert repo
    

    一切正常

    看起来您正在使用。您是否可以尝试从父文件夹中转换
    hg
    并指定文件夹名,而不是
    ,然后查看它是否有效?

    看起来错误消息告诉您使用存储库的绝对路径名,请尝试使用

    hg convert <full_path_including_drive>
    

    是的,我正在使用ConvertExtension(“hgext.convert=“in.hgrc”)。指定源文件夹和/或目标文件夹没有区别。这就是我在回答中试图说的,您可以将其标记为已回答,也可以添加您自己的答案并将其标记为已回答。
    hg convert -s cvs C:\sandbox\cvsrepos