How do I get diffs of all the files in a pending Perforce changelist?

ack picture ack · Jul 13, 2009 · Viewed 31.1k times · Source

I want to get diffs on files in a specific pending changelist. I wish I could do this:

p4 diff -c 999

Can someone help me string together some csh magic to make this happen?

Maybe take the output of p4 opened -c 999 and piping it to p4 diff?

Answer

Alexander Bird picture Alexander Bird · Nov 8, 2012

Shelve the changes in the pending changelist, then run

p4 describe -S -du 999