To change the versions a view selects (Linux and UNIX)

About this task

To change the versions a view selects on the UNIX system or Linux, use the following procedure to add, remove, or otherwise modify the version-selection rules of your view.

Procedure

  1. Do one of the following:
    • If you work in a dynamic view, type the following command:
      cleartool setview view-tag
      .
    • If you work in a snapshot view, change to the root directory of the view.
  2. Type the following command:
    cleartool edcs
    The config spec of the view opens in your default text editor. For information about changing the default editor, see the env_ccase reference page in the Command Reference.
  3. In your text editor, do any of the following:
    • Copy or insert the rules for your project into the config spec. The rules may be available in a text file accessible over the network, or even through e-mail. Verify with the author of the shared config spec whether you need to include any rules other than the ones you paste.
    • Type on its own line include path-to-shared-config-spec. Verify with the author of the shared config spec whether you need to include any rules other than the include rule.
    • If you are familiar with how to create version-selection rules and you have permission to do so, create your own rules.
    Note: Rather than create your own config spec with an include rule, you can use cleartool setcs to use some other config spec directly. For more information, see the setcs reference page in the Command Reference.
  4. Do one of the following, depending on your view type:
    • If you work in a snapshot view, create or modify load rules.
    • If you work in a dynamic view, do the following:
      1. Save the config spec and exit the text editor.
      2. In your shell, answer Yes at the prompt for setting the config spec.