[英]P4V Get Latest does nothing
I do not want to go "Get Revision" > "Force".我不想 go “获取修订版”>“强制”。 Because half of my stuff is already downloaded.
因为我一半的东西已经下载了。 I don't want to overwrite what I already have.
我不想覆盖我已经拥有的东西。 P4V Can clearly see that what is in the depot and what is local is completely different.
P4V 可以清楚的看到,depot 和local 是完全不同的。 How can I get Perforce to retrieve the files I do not have, and ignore the ones I already do?
如何让 Perforce 检索我没有的文件,而忽略我已经做的文件?
Select your workspace root, go to File > Open Command Window Here, and run: Select 您的工作区根目录,go 到文件 > 打开命令 Window 在这里,然后运行:
p4 clean
This will scan your workspace and force-sync everything that's different or missing, as well as deleting unadded files.这将扫描您的工作区并强制同步所有不同或丢失的内容,以及删除未添加的文件。 Note that if you have local work that isn't in a changelist, this will irrevocably erase it.
请注意,如果您有不在更改列表中的本地工作,这将不可撤销地删除它。 If you only want to "clean" files that are edited/present but out of date (and disregard added/deleted files), do
p4 clean -e
instead.如果您只想“清理”已编辑/存在但已过时的文件(并忽略添加/删除的文件),请改为执行
p4 clean -e
。 If you want to preview the operation before doing it for real, do p4 clean -n
.如果您想在实际操作之前预览操作,请执行
p4 clean -n
。
I think you can do the equivalent via the "Reconcile Offline Work" tool in P4V, but it may require additional manual steps.我认为您可以通过 P4V 中的“协调离线工作”工具执行等效操作,但可能需要额外的手动步骤。
To make working with Perforce easier, try to avoid modifying files in your workspace that are read-only -- if you want to remove a file from your workspace, use "remove from workspace" in P4V rather than manually deleting it, etc. Perforce is able to make file operations very fast by virtue of knowing what's in your workspace and not having to re-check it each time, but you eliminate that benefit when you mess with your workspace manually.为了使使用 Perforce 更容易,尽量避免修改工作区中的只读文件——如果你想从工作区中删除文件,请在 P4V 中使用“从工作区中删除”而不是手动删除它等。 Perforce能够通过了解工作区中的内容并且不必每次都重新检查来非常快速地进行文件操作,但是当您手动弄乱工作区时,您会消除这种好处。
Instead of p4 clean
, you could do:而不是
p4 clean
,你可以这样做:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.