Setting the CVS keyword substitution mode

CVS uses the keyword substitution mode of a file to differentiate binary files from ASCII files and to indicate what type of keyword substitution is to take place when files are committed and checked out.

To set the CVS keyword substitution mode:

  1. In the Navigator view, select the files or containing folders for which a change in keyword substitution mode is desired. Note: Ensure that any new files that are to be committed are added to CVS version control as the keyword substitution mode can only be set for files that are already under CVS control.
  2. From the pop-up menu, select Team > Change ASCII/Binary Property. The Set Keyword Substitution Mode wizard will open.
  3. On the first page of the wizard, select the mode to be applied to the selected files:

    Click Next to go to the next page.

  4. On the Include versioned files page of the wizard, indicate whether files already shared in the repository are to be affected. If this setting is disabled, only files that have been added to cvs control but not committed will be affected. This page will only appear if there are files already shared with the repository. Click Next to go to the next page.
  5. On the Include files with outgoing changes page of the wizard, indicate whether files that have outgoing changes are to be affected. This page will only appear if there are files with outgoing changes. Click Next to go to the next page.
  6. On the Summary page of the wizard, inspect the proposed keyword substitution mode settings to ensure they are correct. Click Finish to apply the changes.

Tip: On the Summary page, the assigned mode for a file can be changed by clicking on the proposed mode in the table and selecting the desired mode from the drop down list that becomes available.

Related concepts
Team programming with CVS
Branches
Synchronizing with a CVS repository

Related tasks
Creating a CVS repository location
Checking out a project from the CVS repository
Replacing resources in the Workbench
Defining a branch tag
Branching
Synchronizing with the repository
Updating
Resolving conflicts
Merging from a branch

Related reference
CVS

 
Copyright IBM Corporation and others 2000, 2002