Sometimes you may want to rollback/revert a changeset. This might be useful if a change has been submitted which shouldn't have been or if you want to check whether a change introduced a bug.
To rollback a changeset select the 'Submitted Changesets' within a workspace. Right-click the changeset you want to rollback and select 'Rollback Changeset' from the context menu. This will create a change item for each item within the original changeset. The following change items will be created:
Table 5.1. Changeset Rollback Change Items
|Original Item||Rollback Item|
|File Add||File Delete|
|Folder Add||Folder Delete|
|File Rename||File Rename (back to original path)|
|File Edit||File Edit (reverse delta)|
|File Delete||File Add|
|Folder Delete||Folder Add|
After the changeset has been rolled-back a pending changeset will be created in the Pending Changesets tree node within the workspace. Right-click the pending changeset in the tree and select 'integrate' to integrate the changeset rollback into the workspace. This will launch the Resolve Tool as described in the section called “Resolving a Changeset”.
After the pending changeset has been integrated the change items will be created. These can then be submitted if you want to permanently rollback the changeset as described in the section called “Submitting a Changeset to the Server”.