I've two branches in perforce. Branch12.0 and Branch14.0. How can I find files which are deleted/added from Branch14.0 since Branch12.0?
Asked
Active
Viewed 569 times
2
-
If you don't want to write that script, P4V has a very nice visual "Diff Files Or Folders" tool that makes it easy to view the differences between the two branches. – Bryan Pendleton Oct 25 '13 at 19:56
-
Thanks for the info Bryan. I'll try that too. – mAc Oct 27 '13 at 09:47
1 Answers
2
You can do this with p4 diff2
(help):
p4 diff2 -q //depot/Branch12.0/... //depot/Branch14.0/...
Each line of the output will look like this:
==== file1 - file2 ==== summary
where file1 and file2 are either depot paths with revisions, or <none>
. For files which are missing in one branch, summary will be empty:
p4 diff2 -q //depot/Branch12.0/... //depot/Branch14.0/... | grep '=$'
This gives you results like:
==== //depot/Branch12.0/file.txt#1 - <none> ====
==== <none> - //depot/Branch14.0/file2.txt#1 ====
indicating that file.txt
that was deleted in Branch14.0, and file2.txt
was added.

benj
- 713
- 6
- 12