Jes*_*son 2 python svn mercurial mercurial-convert
我正在尝试将一个Subversion存储库转换为Merurial一个存储库,此时,我只是把头撞在墙上。
在当前的Windows服务器上,安装了以下程序:
Visual SVN服务器,
乌龟汞
Python2.7
在我的控制台中,运行命令
hg convert [dest] [source]
Run Code Online (Sandbox Code Playgroud)
这给出了很多关于存储库类型不同的错误,这也
could not load Subversion python bindings
Run Code Online (Sandbox Code Playgroud)
经过一番谷歌搜索后,我发现这些绑定应该包含在TortoiseHg中,但是正如我已经提到的,我已经安装了TortoiseHg,但仍无法正常工作。然后,我尝试下载svn python绑定,并阅读将其添加到Python27 / Lib / site-packages目录中的某个位置,但仍无法正常工作。我认为我可能不得不用python或其他东西重新编译这些绑定,但是我从未使用过python,所以我很迷路
您以错误的顺序使用了参数
hg convert [OPTION] ...源[DEST [REVMAP]]
对于TortoiseHG 3.4及更高版本,您必须下载并启用Subversion绑定作为单独的扩展
Run Code Online (Sandbox Code Playgroud)[extensions] ... svnbindings = c:\insertpath.py
hg version --svn),也无法file:///仅通过任何网络转换带有访问协议的1.8存储库Run Code Online (Sandbox Code Playgroud)>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
Run Code Online (Sandbox Code Playgroud)
Z:\ SVN回购创建时使用普通格式 svnadmin create
>hg convert file:///Z:/SVN17
assuming destination SVN17-hg
initializing destination SVN17-hg repository
scanning source...
sorting...
converting...
0 Initial data
Run Code Online (Sandbox Code Playgroud)
Z:\ SVN17使用--compatible-version 1.7选项创建