Perforce: How to revert all those files that are opened but unedited?

3.2k Views Asked by At

Is there a way to check all the files which are opened in the p4 client and can be reverted if we know that they are not edited.

1

There are 1 best solutions below

1
sferencik On

In P4V, on the pending changelist in question, right-click and choose Revert Unchanged Files.

On the command-line, you can achieve the same with p4 revert -c CHANGELIST -a (you can even add -n to preview the operation). See p4 help revert for more information.