将 SVN 从pre_prod分支合并到b1分支时出现以下错误:
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
Run Code Online (Sandbox Code Playgroud)
我想尝试一下SO的这个答案。
但我对他的情况有不同意见,他的错误说:
branches/bronze_services/occl
Missing ranges: /trunk/occl:650-693
Run Code Online (Sandbox Code Playgroud)
这是两个不同的分支,而我的错误表明我将 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 [...]
Run Code Online (Sandbox Code Playgroud)
因此,只需按如下方式重播合并:
svn merge -r 239:259 svn://10.10.10.10/projet/branches/pre_prod b1
Run Code Online (Sandbox Code Playgroud)