Perforce:如何将丢失的文件从 Depot 获取到 Workspace?
我的工作区中缺少给定文件,但它存在于 Perforce Depot 中。
我多次尝试“获取修订”并检查“强制操作”标志。它总是检索数百个文件,但不会丢失这个文件,顺便说一句,这是一个 .sln 文件。
可能相关的额外详细信息:a) 我使用 P4V; b) 我通常使用“从源代码管理打开”选项在 Visual Studio 2010 中打开此项目进行编辑; c)我尝试检查解决方案中的所有文件,然后恢复未更改的文件,以尝试获取所有文件,但对于我的这个丢失的文件不起作用。
有人见过类似的东西吗? 有什么想法吗?
多谢!
A given file is missing from my Workspace, but present at the Perforce Depot.
I tried several times to "Get Revision" and checked on the "Force Operation" flag. It always retrieve hundreds of files but not this one missing, which, by the way, is an .sln file.
Extra details that may be relevant: a) I use P4V; b) I usually open this project for editing in Visual Studio 2010 using the option "Open from Source Control"; c) I tried checking out all files in my solution and reverting unchanged files afterwards as an attempt to bring all files, but didn't work for this missing file of mine.
Does anyone have seen something similar?
Any ideas?
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
“获取修订版”和“强制操作”无法正常工作,因为相关文件已被签出。
恢复此文件后,我可以通过强制获取修订版来获取它。
这个想法实际上来自于我回过头来回答的一个类似的问题。
The "Get Revision" with "Force Operation" was not working because the file in question was checked out.
After reverting this file, I could get it by forcing the Get Revision.
This idea actually came from an answer to a similar question to which I came back to.
一种简单的测试方法是,在 P4V depot 视图中突出显示 .sln 文件,然后按 ctrl+shift+s,这将在文件所在的目录中打开一个资源管理器窗口。
An easy way to test, highlight the .sln file in P4V depot view, then hit ctrl+shift+s this will open an explorer window, in the directory where the file is.
只是涵盖所有基础:当您尝试执行此操作时,您是否打开了 Visual Studio?如果是这样,目标文件夹/文件可能被锁定,因此 Perforce 无法在那里写入。
Just covering all the bases: Do you have Visual Studio open while you're trying to do this? If so there's a chance that the target folder/file is locked and so Perforce can't write there.