How to reconcile newer workspace files with depot in Perforce?

孤街醉人 提交于 2019-12-13 16:33:02

问题


I have a situation where my depot is saying it has the latest version of a bunch of different files but my local workspace actually has newer revisions. My tools (P4V and VS plugin) are incorrectly telling me that everything is up-to-date.

I can prove this is the case because if I check out the file, make no changes, and submit, the changes are committed and the history appears correct and get latest operations on other machines pull the correct version of the file.

This isn't really a viable solution as there could be many files that require this fix and I have no way of knowing I have fixed them all.

I believe the issue has come about due to occasionally working offline and (incorrectly) twiddling the read only flag on the file when I needed to make a change.

So my question:

Is there a command (or similar) I can run that will look at my workspace files and see that there is a change that hasn't been committed. Essentially ignoring the 'reported' state of the file? Something like sync but in reverse? This would allow me to 'force commit' all those files and get the depot in the correct state.


回答1:


The command you are looking for is called 'p4 reconcile'. Here's some background information: Working Disconnected from the Perforce Server.



来源:https://stackoverflow.com/questions/29409962/how-to-reconcile-newer-workspace-files-with-depot-in-perforce

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!