[Collapse]CodeCollaborator 6
 [Expand]Big Picture/support/viewarticle/20412/
 [Expand]Server Administration/support/viewarticle/20483/
 [Expand]Web User's Guide/support/viewarticle/20467/
 [Expand]Clients/support/viewarticle/20473/
 [Collapse]Version Control Integration/support/viewarticle/20425/
  [Expand]AccuRev Integration/support/viewarticle/20419/
  [Expand]Borland StarTeam Integration/support/viewarticle/20681/
  [Expand]CVS Integration/support/viewarticle/20482/
  [Expand]Git Integration/support/viewarticle/20494/
  [Expand]IBM CMVC Integration/support/viewarticle/20556/
  [Collapse]IBM Rational ClearCase Integration/support/viewarticle/20530/
    GUI Client/support/viewarticle/20586/
   [Expand]Command Line Client/support/viewarticle/20612/
  [Expand]IBM Rational Synergy Integration/support/viewarticle/20528/
  [Expand]IBM Rational Team Concert Integration/support/viewarticle/20552/
  [Expand]Mercurial Integration/support/viewarticle/20491/
  [Expand]Microsoft Team Foundation Server Integration/support/viewarticle/20481/
  [Expand]Microsoft Visual SourceSafe Integration/support/viewarticle/20620/
  [Expand]MKS Source Integrity Integration/support/viewarticle/20500/
  [Expand]Perforce Integration/support/viewarticle/20486/
  [Expand]SourceGear Vault Integration/support/viewarticle/20485/
  [Expand]Subversion Integration/support/viewarticle/20484/
  [Expand]Surround SCM Integration/support/viewarticle/20549/
 [Expand]External Integrations/support/viewarticle/20740/
 [Expand]Techniques & Best Practices/support/viewarticle/20741/
 [Expand]Appendices/support/viewarticle/20474/
Updated: 3/26/2012 Applies To: CodeCollaborator 6 Rating: No votes Click to rate: PoorNot badAverageGoodExcellent

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



© 2012 SmartBear Software. All rights reserved.
Email Send feedback on this document