Perforce pending change list difference script
Does anyone have such a script to share?
>Take the pending change list number as input > output a uniform difference (including files opened for addition)
I learned from experience that many people who work with perforce have these stupid things When distinguishing newly added files by "P4 diff", I can really use the help of the whole problem of "file is not in client view"
Solution
I didn't have time to find the right solution, so I used this pad:
p4 describe $changelist | sed -ne 's:^\.\.\. \(.*\)#[0-9][0-9]* [a-z][a-z]*$:\1:p' | xargs p4 diff -du
Here is how it works:
From –
p4 describe $changelist
It won't do it itself, but you can use it as a starting point It gets (among other things) a list of changed files in $changelist
sed -ne 's:^\.\.\. \(.*\)#[0-9][0-9]* [a-z][a-z]*$:\1:p'
Print < depot File > form of department and branch only... < depot File > # < revision > < function >
xargs p4 diff -du
Get the list of library files and run P4 diff - Du. On it- The D flag passes U (unified format) to the $p4diff program (it should be diff)