Comparing resources

When a comparison is performed, all applicable comparison editors appear in the editor area. In the comparison editors, the differences are highlighted so you can browse and copy changes between the compared resources.

To compare resources:

  1. Select one or more resources in the Navigator view.
  2. From the resource's pop-up menu, select Compare With.

A tool for viewing differences is opened in the editor area.

Here are some of the comparisons that you can perform. 

Compare With > Latest From Repository
compares the selected resource with the version of the same resource that is currently committed to the active branch.
Compare With > Branch or Version
compares the selected resource with a version that has been committed to the repository or to the latest version in a particular branch. This requires you to choose a version of the resource or a branch from a list.
Compare With > Patch
Displays the result of applying a patch to a resource.
Compare With > Each Other
compares two or three selected resources with each other
Compare With > Revision
compares the selected resource with a version of the same resource that was committed to the active branch. This requires you to choose a revision of the resource from a list.
Compare With > Local History
compares the selected resource to one that is in the local history, which is maintained when you save changes. (Tip: to configure the size and depth of your local history, select Workbench > Preferences.)

Tip: You can customize the behavior of the comparison editor by selecting Workbench > Preferences > Workbench > Compare from the main menu bar. You can select to "lock scroll" the pane contents, as well as setting options for showing conflicts with other team members and changing the default font.

Related concepts
Synchronizing with a CVS repository
Three-way comparisons
Local history

Related tasks
Synchronizing with the repository
Merging changes in the compare editor
Resolving conflicts
Setting preferences for comparing files
Comparing resources with repository versions
Understanding the comparison
Working with patches
Tiling editors

Related references
Compare editor
CVS Synchronize view

 
Copyright IBM Corporation and others 2000, 2002