Rolling Back a File

Published by Marco on in Perforce

How to you revert in Perforce? If you want to roll back to a previous version, use the following instructions.

The following instructions apply to the Windows client (P4WIN) only.

  1. Select the file you wish to roll back (If you want to recover a deleted file, select Show deleted depot files from the View menu).
  2. Right-click and select Revision History.
  3. Select the file revision version you want to recover.
  4. Click the Sync button at the top of the dialog.
  5. Exit the revision history dialog.
  6. Open the file for edit; Perforce will ask which version you want to edit.
  7. Select Edit Current to avoid syncing to the head revision.
  8. Find the file in your changelist.
  9. Right-click and select Resolve => Schedule file for resolve.
  10. Right-click and select Resolve => Resolve interactively.
  11. Select Accept yours from the dialog and click OK.
  12. Submit the file to complete the rollback.