hg convert,Subversion python绑定错误

时间:2015-09-04 08:16:06

标签: python svn mercurial

我试图将一个subversion存储库转换为mercurial一个,在这一点上,我只是把我的头撞到了墙上。

在当前的Windows服务器上安装以下程序: 可视SVN服务器, TortoiseHg, Python2.7

在我的控制台中,我运行命令

  

hg convert [dest] [source]

这给出了很多关于存储库具有不同类型的错误以及

  

无法加载Subversion python绑定

经过一些谷歌搜索后,我发现那些绑定应该包含在TortoiseHg中,但正如我已经提到的,我安装了TortoiseHg并且它仍然无法正常工作。然后我尝试下载svn python绑定并在某处读取我应该在Python27 / Lib / site-packages目录中添加它们但它仍然无法正常工作。我想我可能不得不用python或其他东西重新编译那些绑定,但我从未使用过python,所以我很丢失

1 个答案:

答案 0 :(得分:4)

  1. 您使用的参数顺序不正确

    hg convert [OPTION] ...来源[DEST [REVMAP]]

  2. 对于TortoiseHG 3.4及更高版本,您必须下载并启用Subversion bindings作为单独的扩展名

  3. [extensions]
    ...
    svnbindings = c:\insertpath.py
    
    1. 即使您在Mercurial中有Subversion绑定(尝试显示{strong>此处的hg version --svn输出),也无法使用file:/// access-protocol转换1.8个存储库,仅限任何网络
    2. >hg version --svn
      ...
      hgsubversion: 538bbb927609
      Subversion: 1.7.5
      bindings: SWIG
      
      >hg convert file:///Z:/SVN
      assuming destination SVN-hg
      initializing destination SVN-hg repository
      abort: repository 'file:///Z:/SVN' is not local
      

      Z:\ SVN repo是使用普通svnadmin create

      创建的
      >hg convert file:///Z:/SVN17
      assuming destination SVN17-hg
      initializing destination SVN17-hg repository
      scanning source...
      sorting...
      converting...
      0 Initial data
      

      Z:\ SVN17是使用--compatible-version 1.7选项

      创建的
相关问题