2012-12-28 68 views
3

我下載了最新的P4工具同步命令,但它缺少reconcile命令:缺少Perforce公司在P4工具

$ p4 -V 
Perforce - The Fast Software Configuration Management System. 
Copyright 1995-2012 Perforce Software. All rights reserved. 
This product includes software developed by the OpenSSL Project 
for use in the OpenSSL Toolkit (http://www.openssl.org/) 
See 'p4 help legal' for full OpenSSL license information 
Version of OpenSSL Libraries: OpenSSL 1.0.1c 10 May 2012 
Rev. P4/LINUX26X86_64/2012.2/536738 (2012/10/16). 

這裏是支持的命令的列表(我刪除了一些行):

$ p4 help commands 
Perforce client commands: 

add   Open a new file to add it to the depot 
admin  Perform administrative operations on the server 
annotate Print file lines along with their revisions 
archive  Archive obsolete revisions to archive depots. 
... 
pull  Cause satellite to pull journal or file data from master 
rename  Explains how to rename files 
reopen  Change the type or changelist number of an opened file 
replicate Poll for journal changes and apply to another server 
resolve  Merge open files with other revisions or files 
resolved Show files that have been merged but not submitted 
restore  Restore archived revisions to their original location. 
revert  Discard changes from an opened file 
review  List and track changelists (for the review daemon) 
reviews  Show what users are subscribed to review files 
set   Set variables in the registry (Windows only) 
shelve  Store files from a pending changelist into the depot 
sizes  Display size information for files in the depot 
submit  Submit open files to the depot 
sync  Synchronize the client with its view of the depot 
tag   Tag files with a label 
tickets  Display list of session tickets for this user 
... 
workspaces Display list of known clients 
where  Show how file names map through the client view 

命令缺少reconcilestatus。服務器版本是2010.2/347035,因爲它位於客戶端並管理數百個站點,所以無法升級。

從我的角度來看 - reconcile命令應該是完全客戶端的,所以它不應該依賴於服務器版本。或者我錯了?這些命令缺失的原因是什麼?

編輯:在P4V客戶端,我可以運行類似的命令Reconcile offline work,它可以在我們的服務器上運行。

回答

5

某些Perforce功能只需要更新的服務器;有些需要更新的客戶端;有些需要兩者。每一個新的功能,在釋放被要求描述這裏指出:

http://www.perforce.com/perforce/doc.current/user/relnotes.txt

發佈說明中使用的編碼機制,其中一項新功能,標有1,2,或3星號。由於在發佈說明指出:

* -- requires new p4 client program  
** -- requires new p4d server program  
*** -- requires new p4p proxy program 

所以,在調和的情況下,發行說明列表,如下所示:

#367753 (Bug #68, #889, #989) ** * 
    A new command 'p4 reconcile' allows users to reconcile client 
    with offline work. The command ... 

請注意,此行顯示「** *」結尾;即均爲新客戶端需要新的服務器。註釋前面的367753表示服務器和客戶端都必須使用版本367753或更高版本。

這就是你如何判斷你是否需要一個新的客戶端,或者一個新的服務器,或者兩個都需要一個特定的Perforce功能。

+0

似乎我們確實需要升級服務器。我得到了有關問題的答案,但我仍然不清楚爲什麼P4V可以與舊服務器進行協調。 – stunpix

+0

協調離線工作是該功能的一個類似但不完全相同的實現。事實上,協調離線工作完全在P4V中實施,並且不需要最新的服務器。新的協調功能非常相似,但由服務器和命令行客戶端實現,因此在P4V不可用的情況下可用。它們只是類似功能的替代實現。 –

1

這是因爲你的P4版本太舊了。 reconcile在2012年發佈。

http://www.perforce.com/blog/120126/new-20121-p4reconcile-p4status

我相信你需要在服務器端和客戶端,以支持新的功能 - 我可能是錯的,但因爲你有一個更高版本客戶端,我也經歷過類似的「這應該只是一個客戶端的東西「,這需要服務器支持它(這是4年來,因爲我用perforce,所以請原諒,如果我不記得確切哪個功能,它沒有工作,因爲雖然客戶端支持它,服務器沒有)

+0

該文章指出它是在2012年推出的,而OP的問題則表明他們使用的是2012.2,所以不是這樣。 – Troubadour

+0

但他使用的是服務器版本2010.2--我敢肯定你需要相關的服務器來支持這些東西 - 至少在我的其他功能的經驗。 –

+0

這可能是一個好主意,說你的答案,因爲那也是原始問題的一部分:) – Troubadour