理解SVN错误:只有在以下情况下才能使用重新整合
从pre_prod分支到b1分支执行SVN合并时,我得到以下错误:理解SVN错误:只有在以下情况下才能使用重新整合,svn,merge,Svn,Merge,从pre_prod分支到b1分支执行SVN合并时,我得到以下错误: D:\Web\projet\branches>svn merge svn://10.10.10.10/projet/branches/pre_prod b1 svn: E195016: Reintegrate can only be used if revisions 239 through 259 were previously merged from svn://10.10.10.10/projet/branches
D:\Web\projet\branches>svn merge svn://10.10.10.10/projet/branches/pre_prod b1
svn: E195016: Reintegrate can only be used if revisions 239 through 259 were previously
merged from svn://10.10.10.10/projet/branches/b1 to
the reintegrate source, but this is not the case:
branches/pre_prod
Missing ranges: /branches/pre_prod:241,245
branches/pre_prod/src/Type
Missing ranges: /branches/pre_prod/src/Type:245
我想从现在开始尝试
但我对他的情况有不同,他的错误是:
branches/bronze_services/occl
Missing ranges: /trunk/occl:650-693
这是两个不同的分支,而我的错误要求我将pre_prod分支与其自身合并。怎么可能呢
此外,我的错误消息说要从中合并缺少的修订svn://10.10.10.10/projet/branches/b1.
我不明白,我应该合并什么,从哪里合并?好的,实际上我只需要重新使用引发错误的初始命令,并手动添加缺少的修订,如错误消息中所述: 以下命令引发错误:
svn merge svn://10.10.10.10/projet/branches/pre_prod b1
svn: E195016: Reintegrate can only be used if revisions 239 through 259 were previously [...]
因此,只需按如下方式重播合并:
svn merge -r 239:259 svn://10.10.10.10/projet/branches/pre_prod b1
我已通过以下方式解决了相同的错误消息:
svn co${svn_URL}/trunk
cd trunk&&svn merge${svn\u URL}/branchs/the\u branch
当然,您应该提交合并的签出。很有趣。这对我来说很有效,不像其他的解决方案。你很幸运(或者你必须解决冲突);第二次合并与第一次合并不同,也不是解决方案。如果您仔细阅读错误消息,您会发现它实际上要求您将r239:259从b1合并到pre_prod,而不是相反。