Perforce - How to get the list of files that have been modified locally?

Manish Basantani picture Manish Basantani · Sep 12, 2011 · Viewed 41.3k times · Source

I am looking for a perforce command to get the list of the files that have been modified locally and "not" checked-in to the repository.

I understand that I "should" get the list of modified files in Pending changelist, but there are scenarios when I don't get to see a modified file in that list. And then on "manually" checking out a file and doing a diff i realize the difference.

Is there any command that could check all the files in a given folder and provide me a list of files that are not same as there state in the repository?

I tried "p4 sync", but that did not work.

Thanks for your interest.

Answer

beny23 picture beny23 · Sep 12, 2011

Try

p4 diff -f -sa

(see manual for further details)