Perforce:如何将丢失的文件从 Depot 获取到 Workspace?

发布于 2025-01-05 04:57:42 字数 297 浏览 1 评论 0原文

我的工作区中缺少给定文件,但它存在于 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦中楼上月下 2025-01-12 04:57:42

“获取修订版”和“强制操作”无法正常工作,因为相关文件已被签出。
恢复此文件后,我可以通过强制获取修订版来获取它。

这个想法实际上来自于我回过头来回答的一个类似的问题

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.

玩物 2025-01-12 04:57:42
  1. 最新版本是否因某种原因被删除?如果您在 P4V 中工作区选择器上方的过滤器中有“显示已删除的仓库文件”,它可能看起来在那里,但会被删除。
  2. 您的工作空间正确吗?它是否映射到与您想象的不同的文件夹?

一种简单的测试方法是,在 P4V depot 视图中突出显示 .sln 文件,然后按 ctrl+shift+s,这将在文件所在的目录中打开一个资源管理器窗口。

  1. Is the latest revision deleted for some reason? If you have "Show Deleted Depot Files" in the filter, above the workspace selector in P4V, it may appear to be there, but will be deleted.
  2. Is your workspace correct? Is it mapped to a different folder then where you think?

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.

狼性发作 2025-01-12 04:57:42

只是涵盖所有基础:当您尝试执行此操作时,您是否打开了 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文