Command Line Client

Top  Previous  Next

Commands recommended for ClearCase

ccollab addchanges - Attaches locally-modified files to a review

ccollab addchangelist - Attaches an atomic changelist to a review

ccollab addversions - Attaches any 2 given versions to a review

ccollab addactivity - Attaches file versions in a ClearCase activity to a review

ccollab commit - Commit changes in the review

 

The addchanges command will scan for checked-out files and upload them before they are checked in.

There is an option for the addchanges command that allows local changes to be uploaded with a predecessor version in another branch as the previous version.  The --diffbranch option is used for this:

ccollab addchanges --diffbranch branch-name review file-or-dir [file-or-dir] ...

 

For example, to create a new review and add all changes in the current directory and below, and compare them to the predecessor versions in the \main branch, you would use:

ccollab addchanges --diffbranch main new .

 

You can also use the special branch name pre to refer to the predecessor branch.  For example, to add the local changes to hello.c compared to the most recent predecessor version in the previous branch to review 45, you would use:

ccollab addchanges --diffbranch pre 45 hello.c

 

The addversions command will upload arbitrary versions of ClearCase files after they are checked in.

The addactivity command will upload UCM change sets for review.

Configuration

In most cases, the Command Line Client can automatically detect your ClearCase configuration.  Try testing your configuration to verify the configuration is detected correctly.

If the Command Line Client is unable to detect your ClearCase configuration or you want to override the detected settings, you can manually specify ClearCase settings using global options.

To manually configure the Command Line Client to use ClearCase, execute the following command:

ccollab set scm clearcase