Rolling back changelist actions
You can rollback changes to undo actions performed when changelists were committed. Actions can be rolled back individually or all at once. For example, if you checked in several files when committing a changelist and then needed to rollback all the files, you can rollback the changes to undo them instead of rolling back each file.
Before you rollback changes, you can review information about the actions performed, resolutions available when rolling back, and potential conflicts. The actions you can perform depend on the rollback status and your security permissions. See Rollback changelist action resolutions for information about why actions will or will not rollback.
1. Choose Tools > Changelists.
The Changelists dialog box opens.
2. Select a committed changelist and click Rollback Changes.
The Rollback Changes dialog box opens.
3. Select a file or repository and click a button review the information. Review the information closely if changes were made after the changelist was committed to determine how rolling back actions may affect files.
Button | Use to: | More information |
---|---|---|
View Details | View details about the changelist and action performed. | Viewing changelist details |
Differences | Compare file versions. | Viewing file differences |
History | View the file history. | Viewing file history |
Properties | View the file properties. | Viewing file properties |
4. Enter any Comments, such as a reason for undoing the change.
5. Click a rollback resolution button.
Button | Use to: | More information |
---|---|---|
Rollback Changes | Undo the changelist action. | |
Merge Locally | Manually merge file versions. If the action to rollback changed file contents, you may need to manually merge the files to maintain changes made after the changelist was committed. | Merging files |
Rollback File | Force a rollback to the previous file version. When rolling back files, any changes made after the changelist was committed are discarded. | Rolling back files |
Rollback All | Roll back all the actions. |
6. Click Save As to save the rollback results or click Print to print the results.
7. Click Close when you finish.