我正在尝试使用cvs2git将非常大的cvs存储库(12GB)迁移到git。因此,我在第10遍中得到以下错误:
----- pass 10 (BreakSymbolChangesetCyclesPass) -----
Breaking symbol changeset dependency cycles...
Traceback (most recent call last):
File "/usr/bin/cvs2git", line 70, in ?
git_main(os.path.basename(sys.argv[0]), sys.argv[1:])
File "/usr/lib/python2.4/site-packages/cvs2svn_lib/main.py", line 119, in git_main
main(progname, run_options, pass_manager)
File "/usr/lib/python2.4/site-packages/cvs2svn_lib/main.py", line 96, in main
pass_manager.run(run_options)
File "/usr/lib/python2.4/site-packages/cvs2svn_lib/pass_manager.py", line 181, in run
the_pass.run(run_options, stats_keeper)
File "/usr/lib/python2.4/site-packages/cvs2svn_lib/passes.py", line 1174, in run
for (changeset, time_range) in self.changeset_graph.consume_graph(
File "/usr/lib/python2.4/site-packages/cvs2svn_lib/changeset_graph.py", line 355, in consume_graph
for (changeset, time_range) in self.consume_nopred_nodes():
File "/usr/lib/python2.4/site-packages/cvs2svn_lib/changeset_graph.py", line 285, in consume_nopred_nodes
(
File "/usr/lib/python2.4/site-packages/cvs2svn_lib/changeset_graph.py", line 58, in __init__
self._nodes = [
File "/usr/lib/python2.4/site-packages/cvs2svn_lib/indexed_database.py", line 118, in __getitem__
return self._fetch(offset)
File "/usr/lib/python2.4/site-packages/cvs2svn_lib/indexed_database.py", line 107, in _fetch
return self.serializer.loadf(self.f)
File "/usr/lib/python2.4/site-packages/cvs2svn_lib/serializer.py", line 117, in loadf
return unpickler.load()
MemoryError
这是我的记忆统计: MemTotal:4017036 kB MemFree:1830728 kB
有人有想法,我该如何解决这个问题?
答案 0 :(得分:0)
我找到了一个解决方案: 我的 python版本从 2.4.3升级到2.6.8 已经解决了这个问题。