Perforce 无法正确同步文件 [英] Perforce not syncing files correctly
问题描述
我正在使用 Perforce P4V(图形工具)与我在工作中的 Perforce 服务器进行交互.我有一个添加到仓库的项目,我不小心从本地计算机上的工作区中删除了它,问题是当我使用获取修订操作(相当于同步的 GUI)时,文件没有得到更新,即我可以查看我想要的服务器上的文件,但它们无法与我的本地 PC 正确同步.文件没有从服务器中提取,这让我很沮丧.我假设应该发生的是,如果文件在我的本地 PC 上以任何方式被更改,我应该能够从服务器获取修订,然后将数据拉到我的本地 PC 并覆盖我本地 PC 上的更改,但这并没有发生.有什么我遗漏的吗?
I'm using Perforce P4V, the graphical tool, to interface with my Perforce server here at work. I have a project I added to the depot and I accidentally deleted it from my workspace on my local computer, problem is when I use the Get Revision Action (the GUI equivalent of sync), the files don't get updated, i.e. I can see the files on the server that I want, but they won't sync correctly with my local PC. It's frustrating me that the files aren't getting pulled from the server. What I'm assuming should be happening is if files are altered in anyway on my local PC, I should be able to grab the revision from the server, which then pulls the data to my local PC and overwrites the changes locally on my PC, but that isn't happening. Is there something I'm missing?
推荐答案
我按照你的建议做了,但我一直收到消息,文件仍然打开编辑,无法删除
,当尝试 从工作区中删除
.
I did as you suggested, but I kept getting the message that the files were still open for edit and cannot be deleted
, when trying Remove from Workspace
.
此外,Get Revision
返回一条消息:没有文件被更新
.
Also, Get Revision
returned with a message that no files were updated
.
我最终要做的是Revert
文件,然后执行Get Revision
操作,解决了问题.
What I ended up having to do was Revert
the files, then do the Get Revision
action, that solved the problem.
这篇关于Perforce 无法正确同步文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!