svn:在开发过程中重命名功能分支

时间:2013-03-05 04:42:50

标签: svn branch branching-and-merging

有下一个情况:

在rev X处分支的树干 - >分支机构/ BR1

... dev with periodicical synch trunk - > BR1

br1重命名为br2(此时br1未与主干完全同步)

... dev with periodicical synch trunk - > BR2

最后br2与trunk同步。尝试从br2重新集成到trunk,但TortoiseSVN显示如下错误:

Command: Reintegrate merge .../branches/br2 into ...wc\trunk
Error: Reintegrate can only be used if revisions 12306 through 13012 were previously
Error:  merged from .../trunk to the   
Error:  reintegrate source, but this is not the case:   
Error:   branches/br2/prj1   
Error:     Missing ranges: /trunk/prj1:12359-12728
Error:   branches/br2/prj2   
Error:     Missing ranges: /trunk/prj2:12847   
Completed!

似乎重命名分支是个坏主意:(

那么,这种情况如何解决?重新整合br1然后br2?但目前br1(已删除)未与主干同步,远离它。

1 个答案:

答案 0 :(得分:0)

像往常一样,在提问后的0.5小时后找到答案......

问题出在另外的svn:br2中几个路径的mergeinfo (没有分支重命名...)

svn propdel svn:mergeinfo -R .
svn revert .

解决问题。