### Replacing

Suppose after further reflection, it becomes apparent that the revision of file1.txt that was just received is incorrect and an earlier revision is required. A Workbench resource can be replaced with an earlier revision of the resource from the repository. To roll back to an earlier revision:

1. In the Navigator view select the file1.txt.

2. From the file's context menu, select Replace With > Revision.

3. In the replace with revision Compare editor that opens, choose the original (bottom) revision and, from the pop-up menu choose Get Contents.

4. Observe that the Navigator updates to show the CVS state of a resource. Notice that the modified file is preceded by ">" (see #1) indicating that file1.txt has changed (by replacing it with the earlier version).

5. Now assume that this older revision is not as good as it initially seemed and in fact the revision in the repository is better after all.

   Instead of choosing Team > Synchronize with Repository, choose Replace With > Latest from Repository.

   Observe that file1.txt is updated to be the contents from the repository, and that the leading indicator ">" has been removed since it is now the same revision as the repository.

Now that how to synchronize with the repository, replace with a revision or replace with the latest from the repository has been explained, these revisions/versions can also be compared with in a similar manner by choosing the Compare With menu operation from a resource's context menu in the Navigator.