Issue
This Content is from Stack Overflow. Question asked by Andre Luis
I regularly need to check if the changes of a changelist are the same as the changes of a reference changelist, I would like to know if there is any command or script to facilitate this
Solution
The first idea that comes to my mind is to write a script that runs the p4 diff command (or p4 diff2, if you are comparing two different changelists on the server) for the two different changelists you want to compare and puts each of them in a separate text file. Then run p4merge and pass the files in as arguments.
p4 diff first_path/...@345 > diff1.txt
p4 diff second_path/...@347 > diff2.txt
p4merge diff1.txt diff2.txt
Hopefully that at least gets you started on some ideas!
This Question was asked in StackOverflow by Andre Luis and Answered by Jase Lindgren It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.