Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.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
使用hgconvert将git-repo转换为旧的svn格式_Git_Svn_Format_Mercurial_Mercurial Convert - Fatal编程技术网

使用hgconvert将git-repo转换为旧的svn格式

使用hgconvert将git-repo转换为旧的svn格式,git,svn,format,mercurial,mercurial-convert,Git,Svn,Format,Mercurial,Mercurial Convert,根据以下帖子: 可以使用hg convert将git回购转换为svn回购。这对我来说是可行的,然而,由此产生的svn回购对我来说是现代的。生成的svn回购的db/格式编号为6(svn 1.8+)。我需要它是4(1.6+),即svn的旧版本。有没有办法指定hg convert转换为指定的db/格式编号 或者,是否有其他方法可以将我的git repo转换为svn db/格式4(1.6+)您可以使用当前版本的Subversion将存储库转储为版本无关的格式(svnadmin dump),然后使用较旧

根据以下帖子:

可以使用
hg convert
将git回购转换为svn回购。这对我来说是可行的,然而,由此产生的svn回购对我来说是现代的。生成的svn回购的db/格式编号为6(svn 1.8+)。我需要它是4(1.6+),即svn的旧版本。有没有办法指定hg convert转换为指定的db/格式编号


或者,是否有其他方法可以将我的git repo转换为svn db/格式4(1.6+)

您可以使用当前版本的Subversion将存储库转储为版本无关的格式(
svnadmin dump
),然后使用较旧版本的Subversion将转储文件加载到新存储库(
svnadmin load

否则,我建议寻找支持旧版本Subversion的基于hg&git的工具的旧版本