使用reposurgeon将svn repo转换为git [英] converting svn repo to git using reposurgeon
问题描述
我正在尝试使用 reposurgeon 将svn存储库转换为git.
I am trying to convert an svn repo to git using reposurgeon.
这就是我所做的(有一个repo.map文件,该文件具有svn名称-> git名称映射):
Here is what I did ( have a repo.map file that has the svn name -> git name mapping):
svnadmin dump /home/subversion > repo.svn
reposurgeon "verbose 1" "repo.svn" "authors read" "write repo.fi"
reposurgeon运行多个小时(由于它是一个12GB的转储文件,因此需要进行大量交换),并且一切看起来都很不错.这是我得到的输出:
reposurgeon runs for many hours (lots of swapping as it is a 12GB dump file), and everything looks good. Here is the output I get:
reposurgeon: verbose 1
reposurgeon: from repo.svn...copynodes+filemaps+copysets+commits+branches+parents+root+branchlinks+svn-mergeinfo+tagifying+tagify-empty+polishing+canonicalizing+resets+debubbling+renumbering+14163 revisions (1/s)...(9810.18 sec) done.
reposurgeon: r13: deleting parentless zero-op commit.
.
.
.
reposurgeon: r13726: deleting parentless zero-op commit.
2012-12-24T01:16:23Z * repo.svn
这时回购者就坐了.我现在不确定在哪里寻找解决方案,因为它实际上从未给我错误消息.任何建议都是最欢迎的.
At this point reposurgeon just sits. I'm not sure where to look for a solution at this point, as it never actually gives me an error message. Any suggestions are most welcome.
推荐答案
它已成功导入存储库,但随后它处理了authors read
命令,但未指定文件.此时,它实际上正在等待文件出现在stdin上.使用authors read <author-map
,其中author-map是包含该地图的文件的名称.
It's successfully imported the repository, but then it goes to process the authors read
command, but you didn't specify a file. At this point it's actually waiting for the file to appear on stdin. Use authors read <author-map
where author-map is the name of the file containing the map.
出于类似的原因,您还希望将write命令更改为write >repo.fi
.
You'll also want to change the write command to write >repo.fi
, for similar reasons.
这篇关于使用reposurgeon将svn repo转换为git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!