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
Svn hgsubversion报告Windows上的旧subversion版本_Svn_Mercurial_Hgsubversion - Fatal编程技术网

Svn hgsubversion报告Windows上的旧subversion版本

Svn hgsubversion报告Windows上的旧subversion版本,svn,mercurial,hgsubversion,Svn,Mercurial,Hgsubversion,我正在尝试使用Windows 7上的hgsubversion将Subversion存储库转换为Mercurial存储库。在我解决了许多其他错误之后,我现在被一个似乎不正确的Subversion版本所困扰 当我尝试hg克隆时file:///C:/source/我发现以下错误: abort: Unable to open an ra_local session to URL Unable to open repository 'file:///C:/source' Expected FS forma

我正在尝试使用Windows 7上的hgsubversion将Subversion存储库转换为Mercurial存储库。在我解决了许多其他错误之后,我现在被一个似乎不正确的Subversion版本所困扰

当我尝试
hg克隆时file:///C:/source/
我发现以下错误:

abort: Unable to open an ra_local session to URL
Unable to open repository 'file:///C:/source'
Expected FS format between '1' and '4'; found format '6'
这似乎表明Subversion存储库是版本1.8+(确实如此),但我的本地Subversion工具是旧版本

事实上,
hg版本--svn
显示:

Mercurial Distributed SCM (version 2.8)

...

hgsubversion: 691078c03ed9
Subversion: 1.6.16
bindings: SWIG
svn, version 1.8.4 (r1534716)
compiled Oct 28 2013, 05:30:01 on x86_64/x86-microsoft-windows5.1.2600
但是
svn--version
显示:

Mercurial Distributed SCM (version 2.8)

...

hgsubversion: 691078c03ed9
Subversion: 1.6.16
bindings: SWIG
svn, version 1.8.4 (r1534716)
compiled Oct 28 2013, 05:30:01 on x86_64/x86-microsoft-windows5.1.2600
为什么hgsubversion报告使用的是较旧版本的Subversion?据我所知,我只安装了Subversion 1.8.4

或者这是因为乌龟身上捆绑的SWIG绑定?我应该试试其他绑定吗


到目前为止,试图实现这一点是一个非常令人沮丧的经历。

您遇到的问题是,您的计算机上有两个不同的SVN版本:常规服务器SVN和与hgsubversion捆绑的版本。您可以通过以下方式解决此问题:

  • 设置一个SVN服务器(我听说应该有一个SVN服务可以),这样hgsubversion就可以通过版本无关的wire协议与您的SVN repo进行对话
  • 转储您的repo内容,并将其加载到新创建的repo中,该repo是使用
    svnadmin--1.7版之前的兼容版本创建的
    ,以便hgsubversion版本可以读取它

    • 您的问题是,您的计算机上有两个不同的SVN版本:常规服务器SVN和与hgsubversion捆绑的版本。您可以通过以下方式解决此问题:

      • 设置一个SVN服务器(我听说应该有一个SVN服务可以),这样hgsubversion就可以通过版本无关的wire协议与您的SVN repo进行对话
      • 转储您的repo内容,并将其加载到新创建的repo中,该repo是使用
        svnadmin--1.7版之前的兼容版本创建的
        ,以便hgsubversion版本可以读取它

      有一个SVN版本与hgsubversion捆绑在一起?谢谢你的回答,但是,我决定放弃在Windows上进行转换的尝试。相反,我在Virtualbox中安装了Ubuntu,并在那里成功地进行了转换我自己也有这个问题,三年后。当我运行svnadmin时,无法识别预兼容标志。@DCShannon也许你可以像我一样在Linux虚拟机中进行转换?据我记忆所及,与Windows 7上的体验相比,它进行得非常顺利。有一个SVN版本与hgsubversion捆绑在一起?谢谢你的回答,但是,我决定放弃在Windows上进行转换的尝试。相反,我在Virtualbox中安装了Ubuntu,并在那里成功地进行了转换我自己也有这个问题,三年后。当我运行svnadmin时,无法识别预兼容标志。@DCShannon也许你可以像我一样在Linux虚拟机中进行转换?据我记忆所及,与Windows7上的体验相比,它进行得非常顺利。