2013-03-11 47 views
2

我在無法使用集成

//depot/MyDemoInfo/trunk/Server/My_Service 

My_Service下&在P4的一個分支,我的整個源代碼存在於P4創建新的分支。

現在,當我試圖創建一個從上述幹分支一個新的分支,它給我的錯誤:

我試圖創建一個新的發佈分支,如下圖所示:

//depot/MyDemoInfo/1.0/Server/My_Service 

所以,我發出以下命令在我的客戶的規格將它添加後:

p4 integrate //depot/MyDemoInfo/trunk/Server/My_Service/... //depot/MyDemoInfo/1.0/Server/My_Service/... 

它提供了以下錯誤:

//depot/MyDemoInfo/1.0/Server/My_Service//abc.txt - can't integrate from //depot/MyDemoInfo/trunk/Server/My_Service/abc.txt#1 (moved from //depot/MyDemoInfo/trunk/Server/My_Service/abc.txt; provide a branch view that maps this file, or use -Di to disregard move/deletes) 

對於我的樹幹分支中的所有文件,它給出上述相同的錯誤。有人能幫助我在這裏發生什麼問題嗎?

謝謝!

回答

3

當運行p4 integrate,爲一體化的目標應該在你的perforce client workspace映射這正是這個錯誤表示:

provide a branch view that maps this file, or use -Di to disregard move/deletes

使用p4 clientp4v,映射以下Perforce的車廠//depot/MyDemoInfo/1.0/Server/My_Service到您的客戶端工作區到您計算機上的某個目錄:/myp4workspace/MyDemoInfo/1.0/Server/My_Service

然後執行此操作:

cd /myp4workspace/MyDemoInfo/1.0/Server/My_Service 
p4 integrate //depot/MyDemoInfo/trunk/Server/My_Service/... ... 

# This is optional, but a regular workflow to make sure you resolve all the conflicts 
# Display any conflicts (there shouldn't be any since this is the first time you're integrating into this location) 
p4 resolve -n ... 

# If there are any, use p4 resolve -as ... , p4 resolve -am ... , and then p4 resolve ... 

# Submit your changes after verifying it is correct 
p4 submit ... 

而且一個你可能要照顧的是還有一點,與-t -d選項運行p4 integrate,以便保留文件類型,並且在任何已刪除的文件的變化帶來的(雖然這兩個選項可能無法真正需要你的情況,但在指定它們時沒有錯)。

此外,您還可以運行p4 where以確認在進行任何集成之前您處於正確的倉庫位置。

+0

使用-t -d後,問題得到解決。 – 2013-03-11 21:23:45

1

您的integrate命令中缺少斜槓。目標/目的地應在...之前包含斜線。

試試這個:

p4 integrate //depot/MyDemoInfo/trunk/Server/My_Service/... //depot/MyDemoInfo/1.0/Server/My_Service/... 
----------------------------------------------------------------------------------------------------^ 

,可能會解決它。如果不是,請確認目標位於您的客戶端規格映射中。

+0

對不起,這是一個類型。 /存在,我仍然收到錯誤 – 2013-03-11 20:16:22