2015-03-03 51 views
1

做一個SVN復興只能用於合併來自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/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 

我想嘗試this answer從SO。

但我已經對他的情況有差別,他的錯誤說:

branches/bronze_services/occl 
    Missing ranges: /trunk/occl:650-693 

這是兩個不同的分支,而我的錯誤說我與自身合併pre_prod分支機構。這怎麼可能?

此外我的錯誤消息說,合併svn://10.10.10.10/projet/branches/b1丟失修訂

我不明白,我該怎麼合併,從哪裏?

回答

2

好吧其實我只是需要重新使用的引發錯誤的初始命令,並添加手動修改失蹤錯誤消息說:

以下命令將引發一個錯誤:

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 
+0

有趣。這對我來說很有用,與其他解決方案不同。 – Luciano 2016-04-04 18:01:24

+0

你很幸運(或者你必須解決衝突);第二次合併與第一次合併不同,並不是解決方案。如果您更仔細地閱讀錯誤消息,則會發現它實際上要求您將b1的r239:259合併到pre_prod,而不是相反。 – vladr 2016-11-01 20:17:39

-1

我已經設法解決同樣的錯誤信息:

  1. 製作新鮮退房主幹:svn co ${SVN_URL}/trunk
  2. 合併從存儲庫分支到新鮮退房:cd trunk && svn merge ${SVN_URL}/branches/the_branch

你當然應該提交合並退房。