Synchronizing with the repository

Method 1: Using the context menu

To synchronize resources in the Workbench with those in the repository:

  1. In the Navigator view, select the resources that you want to synchronize.
  2. Right click and select Team > Synchronize with Repository. The Synchronize view opens.

Method 2: Using the synchronize action

  1. From the CVS Repository Exploring perspective select the Synchronize CVS projects button.
  2. Select to either include all projects that are shared with CVS or specify a working set. Then select OK.
  3. The Synchronize view will open.

Note: The synchronize action is not enabled by default in other non-CVS specific perspectives. You can enable the action to appear in your current perspective by selecting Window > Customize Perspective. Then enable the CVS item via Other > CVS.

From within the synchronize view

  1. Use the toolbar buttons to switch modes for this view. There are three modes:

    Important: It is preferable to update resources in the Workbench first, resolve any conflicts that exist by merging, then commit Workbench resources to the repository.

  2. It is possible that someone has committed a new revision of your file since you started working on it. This will result in a conflict, and care must be taken to resolve this. To see only conflicts, click the Show Only Conflicts button on the view's toolbar.

The resources displayed in the Structure Compare area will depend on which mode is used in the Synchronize view. In the Text Compare area, the Workbench resource is on the left side, and the repository resource is on the right side.

Related concepts
Team programming with CVS
Branches
Synchronizing with a CVS repository
Three way comparisons

Related tasks
Committing
Updating
Resolving conflicts
Comparing resources
Merging changes in the Compare editor
Merging from a branch
Version control life cycle: adding and ignoring resources
Replacing resources in the Workbench

Related references
CVS
Synchronize view

 
Copyright IBM Corporation and others 2000, 2003