Sostituzione
Suppose after further reflection, it becomes apparent
to Jane that the revision of file1.txt that was just received is incorrect and
an earlier revision is required. È possibile sostituire una risorsa del workbench con una revisione precedente della risorsa presente nel repository. Per effettuare il rollback a una revisione precedente:
- In one of the navigation views select the file1.txt.
- From the file's context menu, select Replace With > History....
- The history view will open and display the revisions available for the
selected file. Make sure that the history view is in Remote Revisions mode. (If it is not you can put it in
Remote mode by clicking on the Remote Revisions button in the History view toolbar.)
Select revision 1.3 in the
table and from the pop-up menu choose Get Contents.
- Notare che la vista Selezione viene aggiornata per visualizzare lo stato CVS di una risorsa.
Notice that the modified file is preceded by ">" indicating
that file1.txt has changed (by replacing it with the earlier version).
- Si presuma adesso che questa vecchia revisione non
è adatta, come sembrava inizialmente, e che la revisione presente nel
repository è migliore.
Instead of choosing Team > Synchronize with Repository, choose
Replace With > Latest from HEAD.
Observe that file1.txt is updated to have the same contents as the latest revision from the repository,
and that the leading indicator ">" has been removed since it is now the
same revision as the repository.
Now that you have a file's revisions displayed in the History View, it is possible to compare revisions directly
by selecting the revisions in the table and choosing Compare With Each Other.