Comparing resources
When a comparison is performed, comparison
editors appear in the editor area. The differences between files are highlighted
in the comparison editors, allowing you to browse and copy changes between the compared
resources.
To compare resources:
- Select one or more resources in the Navigator view.
- 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 HEAD
- compares the selected resource with the version of the same resource that is
currently committed to the active branch.
- Compare With > Another 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 > 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, look under Window > Preferences
> Workbench > Local History.)
Tip: You can customize the behavior of the comparison editor by
selecting Window > Preferences > Workbench > Compare/Patch
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.
Synchronizing with a CVS repository
Three way comparisons
Local history
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
Compare editor
CVS Synchronize view