[Collapse]CodeCollaborator 5
 [Expand]Big Picture/support/viewarticle/20018/
 [Expand]Server Administration/support/viewarticle/20087/
 [Expand]Web User's Guide/support/viewarticle/20071/
 [Expand]Clients/support/viewarticle/20077/
 [Collapse]Version Control Integration/support/viewarticle/20031/
  [Expand]AccuRev Integration/support/viewarticle/20025/
  [Expand]Borland StarTeam Integration/support/viewarticle/20233/
  [Expand]CVS Integration/support/viewarticle/20086/
  [Expand]Git Integration/support/viewarticle/20223/
  [Expand]IBM CMVC Integration/support/viewarticle/20222/
  [Collapse]IBM Rational ClearCase Integration/support/viewarticle/20224/
    GUI Client/support/viewarticle/20120/
   [Collapse]Command Line Client/support/viewarticle/20154/
     addchanges/support/viewarticle/20137/
     addchangelist/support/viewarticle/20128/
     addversions/support/viewarticle/20138/
     addactivity/support/viewarticle/20109/
     commit/support/viewarticle/20219/
  [Expand]IBM Rational Team Concert Integration/support/viewarticle/20164/
  [Expand]IBM Rational Synergy Integration/support/viewarticle/20238/
  [Expand]Mercurial Integration/support/viewarticle/20236/
  [Expand]Microsoft Team Foundation Server Integration/support/viewarticle/20085/
  [Expand]Microsoft Visual SourceSafe Integration/support/viewarticle/20160/
  [Expand]MKS Source Integrity Integration/support/viewarticle/20237/
  [Expand]Perforce Integration/support/viewarticle/20090/
  [Expand]SourceGear Vault Integration/support/viewarticle/20089/
  [Expand]Subversion Integration/support/viewarticle/20088/
  [Expand]Surround SCM Integration/support/viewarticle/20318/
 [Expand]External Integrations/support/viewarticle/20301/
 [Expand]Techniques & Best Practices/support/viewarticle/20302/
 [Expand]Appendices/support/viewarticle/20078/
Updated: 4/18/2011 Applies To: CodeCollaborator 5 Rating: No votes Click to rate: PoorNot badAverageGoodExcellent

ccollab addchanges (for ClearCase)

Top Previous Next

Usage: ccollab [global-options] addchanges [--diffbranch <value> --upload-comment <value>] <review> <file-spec> [<file-spec> ...]

addchanges - Attaches locally-modified files to a review

Command Options

Option

Required?

Description

--diffbranch <value>

N

(ClearCase only) specify either branch-name or "predecessor" to determine the earlier version for upload

--upload-comment <value>

N

Comment used to upload files (default is "Local changes")

<review>

Y

Must be either an integer review-id, 'new', 'ask', or 'last'

<file-spec> [<file-spec> ...]

Y

Local files or directories to scan for modified files

Uploads locally modified files controlled by ClearCase to the Code Collaborator server.

The first argument is the review specifier, then any number of files or directories can be given. Files are selected as-is; directories are scanned recursively for locally-modified files, which might include edits, additions, deletions, branches, integrations, moves, copies, and so on.

After the scan is complete, a file list is presented in a graphical editor so you can review the files about to be uploaded and make any corrections you wish.

For example, to create a new review and add all changes in the current directory and below, plus the file foo.txt, you would use:

ccollab addchanges new . foo.txt

To upload modified files from the current working directory and all subdirectories to review 123:

ccollab addchanges 123 .

To upload file foo.txt and modified files from c:\dev\project into a brand new review:

ccollab addchanges new foo.txt c:\dev\project

The '--diffbranch' option allows local changes to be uploaded with a predecessor version in another branch as the previous version.

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



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