我正在尝试使用(Kde) SVN2GIT将具有26,000多个修订版的SVN存储库迁移到多个Git存储库。一个特定的存储库在迁移时会产生错误。这就是为什么我减少了迁移到该特定存储库的规则。
以下是生成资源库的规则:
create repository my_repo
end repository
#
# Declare the rules
# Note: rules must end in a slash
#
#
# my_repo
#
match /Project/trunk/dir_1/
repository my_repo
branch master
end match
match /Project/branches/([^/]+)/dir_1/
repository my_repo
branch \1
end match
match /Project/tags/([^/]+)/dir_1/
repository my_repo
branch refs/tags/tag/\1
annotated true
end match
match /
end match
SVN2Git是使用Linux服务器上documentation中提供的docker image选项执行的。 我尝试过的一些替代方法中,规则中包含参数“操作递归”的用户,这在here中进行了描述。 规则如下:
create repository my_repo
end repository
#
# Declare the rules
# Note: rules must end in a slash
#
#
# my_repo
#
match /Project/trunk/dir_1/
repository my_repo
branch master
min revision 18800
end match
match /Project/branches/([^/]+)/dir_1/
repository my_repo
branch \1
min revision 18800
action recurse
end match
match /Project/tags/([^/]+)/dir_1/
repository my_repo
branch refs/tags/tag/\1
min revision 18800
action recurse
annotated true
end match
match /
end match
我也遵循规则,但是我的方法都无效。
以下是日志的摘要:
Exporting revision 18840 done
Exporting revision 18841 /Project/branches/branch_2/dir_1 was copied from /Project/branches/branch_1/dir_1 rev 18840
/Project/branches/branch_2/dir_2 was copied from /Project/branches/branch_1/dir_2 rev 18840
rev 18841 /Project/branches/branch_2/dir_2/ matched rule: "/tmp/conf/Project.rules:22 /Project/branches/([^/]+)/dir_2/" exporting.
.my_repo : branch branch_2 is branching from branch_1
"branch_2" in repository "my_repo" is branching from branch "branch_1" but the latter doesn't exist. Can't continue.
rev 18841 /Project/branches/branch_2/dir_2/ matched rule: "/tmp/conf/Project.rules:22 /Project/branches/([^/]+)/dir_2/"
我的问题是,是否有人以前曾犯过此错误?如果是,您如何处理?
任何帮助将不胜感激。我已经解决这个问题了一个多星期。
感谢并希望有人能提供帮助。