我必然有两个分支。 Branch12.0 和 Branch14.0。如何查找自 Branch12.0 以来从 Branch14.0 删除/添加的文件?
最佳答案
您可以使用p4 diff2
来做到这一点(help):
p4 diff2 -q //depot/Branch12.0/... //depot/Branch14.0/...
每一行输出将如下所示:
==== file1 - file2 ==== summary
其中file1和file2是带有修订版的仓库路径,或者<none>
。对于一个分支中缺少的文件,摘要将为空:
p4 diff2 -q //depot/Branch12.0/... //depot/Branch14.0/... | grep '=$'
这会给你这样的结果:
==== //depot/Branch12.0/file.txt#1 - <none> ====
==== <none> - //depot/Branch14.0/file2.txt#1 ====
表明file.txt
在 Branch14.0 中被删除,并且 file2.txt
已添加。
关于perforce - 列出两个分支之间新增或删除的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19589003/