Undoing changes

With Helix Server 2017.1 and later, you can undo:

Note

Helix Server does not undo integration records with p4 undo. When P4V undoes a merge event, it does undo the change but does not undo any integration history.

The Undo Changes dialog always opens in the context of the selected entity, which can be a workspace or depot folder or file, a changelist, a revision, or a label. For example:

When undoing a range, the Undo option creates the range according to the limit type:

You can preview the undo operation before submitting your changes. You can also specify a revision as the keyword "have." In this case, P4V applies the range for the files under the directory selection according to each file's "have" revision.

Important

When undoing rename or move operations, make sure to perform the undo option on the changelist that includes the rename or move operation. Otherwise, P4V will display an error message. p4 move and p4 rename operations are atomic in that you cannot split the move/add and move/delete pair.

P4V restores file state as follows:

Note

With Helix Server 2016.2 and earlier, undoing changes works as described in Reverse a changelist submission in the P4V User Guide for version 2017.2.

To perform an undo operation:

  1. Select one of the following:

  2. From the Actions menu, select Undo Changes.

  3. In the Undo Changes dialog, if needed, specify whether you want to undo a single change, a range of changes, or all changes from a selected point forward.

  4. Depending on your selection in step 3, specify a revision, changelist, date/time, or label, or a range of the same.
  5. Specify whether to check out the changes to a new or existing changelist.
  6. Optionally, to inspect the file affected by the changes, click Preview.
  7. Do one of the following: