Perforce - 如何获取已本地修改的文件列表?
我正在寻找一个 perforce 命令来获取已在本地修改且“未”签入存储库的文件列表。
我知道我“应该”获取待处理更改列表中的已修改文件列表,但在某些情况下我看不到该列表中的已修改文件。然后,在“手动”检查文件并进行比较时,我意识到了差异。
是否有任何命令可以检查给定文件夹中的所有文件并为我提供与存储库中状态不同的文件列表?
我尝试了“p4 同步”,但没有成功。
感谢您的关注。
I am looking for a perforce command to get the list of the files that have been modified locally and "not" checked-in to the repository.
I understand that I "should" get the list of modified files in Pending changelist, but there are scenarios when I don't get to see a modified file in that list. And then on "manually" checking out a file and doing a diff i realize the difference.
Is there any command that could check all the files in a given folder and provide me a list of files that are not same as there state in the repository?
I tried "p4 sync", but that did not work.
Thanks for your interest.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
尝试
(有关更多详细信息,请参阅手册)
Try
(see manual for further details)
我使用“p4 revert -n ./...”
,其中
-n
列出将要还原的文件,而不实际执行还原。
这可以让您在实际恢复文件之前确保恢复按照您的想法进行。
I use "p4 revert -n ./..."
where
-n
List the files that would be reverted without actually performing the revert.
This lets you make sure the revert does what you think it does before actually reverting the files.
在 Perforce 的最新版本中,尝试“p4 reconcile -e”,
请参阅:http://www.perforce.com/perforce/r12.1/manuals/cmdref/reconcile.html
不过这确实需要时间(不是很快)。
In the recent versions of Perforce, try "p4 reconcile -e"
see: http://www.perforce.com/perforce/r12.1/manuals/cmdref/reconcile.html
It certainly takes its time though (not very fast).
我认为,修改的文件是在本地提交的(否则,p4打开./...将有助于查找)
如果文件已经提交到本地perforce并且仍然想知道哪些都被修改了..
I think, the modified files are submitted locallay (Otherwise, p4 opened ./... will help to find)
If files are already submitted to local perforce and still want to know which all are modified..
我是 Perforce 新手,但以下命令适用于这种情况
p4状态
这显示了不属于存储库但存在于仓库中的所有文件
I am new to Perforce, but below command works for this situation
p4 status
This shows all files that are not part of repository but present in depot