2016-12-15 74 views
2

其他人有一個更改列表,擱置我登記。所以在我的工作區,我首先做取消擱置:當試圖登錄後,無法鎖定文件

p4 unshelve -s 111111 

然後嘗試簽入,但失敗:

p4ci -fixed QUEST -cr reviewer -- changedfile.cpp 

而且收到錯誤:

changedfile.cpp - no permission to lock file 

如果我取消擱置已更改的文件其他地方複製文件,然後覆蓋原來的,簽入工程。但他的程序似乎並不合法。那麼在擱置後我該怎麼做?

回答

2

聽起來像Perforce protect規則已被定義爲您擁有open權限changedfile.cpp,但您沒有write權限。

參見:https://www.perforce.com/perforce/doc.current/manuals/cmdref/p4_protect.html

open

This gives the user permission to do everything she can do with read access, and gives her permission to p4 add, p4 edit, p4 delete, and p4 integrate files. However, the user is not allowed to lock files or submit files to the depot.

對戰:

write

The user can do all of the above, and can also write files with p4 submit and lock them with p4 lock.

你的下一個步驟應該是與您的Perforce管理員和弄清楚爲什麼你只有open許可,不write許可。

也許你的帳戶沒有放在適當的組中;典型的Perforce安裝中的保護授予整個組,而不是針對單個開發人員,因此您必須在適當的組中才能獲得所需的保護。

+0

但是,如果我在其他地方取消擱置,然後複製並替換我的工作區中的文件。然後簽入成功。但是,如果在我的工作區本地取消保存chagelist並嘗試直接簽入,則會報告此錯誤。基本上我希望我可以放棄並簽入,這可能嗎? – seektrue

+0

@seektrue爲了這是值得的,對我來說這是正確的答案。儘管我確實擁有寫入權限,但我的帳戶中仍有一個「NoSubmit」標誌,我必須清除該標誌。 –