如何在 Perforce 树中找到未跟踪的文件?(svn 状态的模拟) [英] How to find untracked files in a Perforce tree? (analogue of svn status)
问题描述
有人有脚本或别名可以在 Perforce 树中查找未跟踪(实际上:未添加)的文件吗?
Anybody have a script or alias to find untracked (really: unadded) files in a Perforce tree?
我更新了这个答案,因为看起来 P4V 在 2009 年 1 月的版本中增加了对此的支持.
I updated the accepted answer on this one since it looks like P4V added support for this in the January 2009 release.
推荐答案
请立即使用 p4 status
.不再需要跳过箍.请参阅@ColonelPanic 的答案.
Please use p4 status
now. There is no need for jumping through hoops anymore. See @ColonelPanic's answer.
在 2009 年 1 月的 P4V 版本中,您可以右键单击工作区树中的任何文件夹,然后单击协调离线工作..."
In the Jan 2009 version of P4V, you can right-click on any folder in your workspace tree and click "reconcile offline work..."
这将进行一些处理,然后显示未签出但与 depot 版本有差异或根本未签入的文件的拆分树视图.它甚至可能会带来其他一些类别.
This will do a little processing then bring up a split-tree view of files that are not checked out but have differences from the depot version, or not checked in at all. There may even be a few other categories it brings up.
您可以在此视图中右键单击文件并签出、添加甚至还原它们.
You can right-click on files in this view and check them out, add them, or even revert them.
这是一个非常方便的工具,几次救了我的屁股.
It's a very handy tool that's saved my ass a few times.
啊这个问题是专门针对脚本提出的,但我会在这里留下这个答案以防万一.
ah the question asked about scripts specifically, but I'll leave this answer here just in case.
这篇关于如何在 Perforce 树中找到未跟踪的文件?(svn 状态的模拟)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!