[Collapse]CodeCollaborator 6
 [Expand]Big Picture/support/viewarticle/20412/
 [Expand]Server Administration/support/viewarticle/20483/
 [Expand]Web User's Guide/support/viewarticle/20467/
 [Collapse]Clients/support/viewarticle/20473/
   Installation/support/viewarticle/20487/
  [Expand]Configuration/support/viewarticle/20676/
  [Expand]GUI Client/support/viewarticle/20456/
  [Collapse]Command Line Client/support/viewarticle/20450/
    Configuration/support/viewarticle/20416/
    Commands/support/viewarticle/20680/
    Graphical Editor/support/viewarticle/20422/
    Uploading Diffs/support/viewarticle/20488/
    Troubleshooting/support/viewarticle/20480/
    Global Options Reference/support/viewarticle/20410/
   [Collapse]Command-line Reference/support/viewarticle/20496/
     help/support/viewarticle/20565/
     info/support/viewarticle/20578/
     login/support/viewarticle/20547/
     logout/support/viewarticle/20582/
     set/support/viewarticle/20414/
     addchanges/support/viewarticle/20490/
     addfiles/support/viewarticle/20522/
     addchangelist/support/viewarticle/20514/
     adddiffs/support/viewarticle/20495/
     addsvndiffs/support/viewarticle/20553/
     addardiffs/support/viewarticle/20417/
     addcvsdiffs/support/viewarticle/20505/
     addgitdiffs/support/viewarticle/20580/
     addhgdiffs/support/viewarticle/20579/
     addp4diffs/support/viewarticle/20503/
     addstdiffs/support/viewarticle/20512/
     addvssdiffs/support/viewarticle/20576/
     addversions/support/viewarticle/20519/
     addactivity/support/viewarticle/20537/
     actionitems/support/viewarticle/20577/
     addtrack/support/viewarticle/20508/
     addstream/support/viewarticle/20409/
     browse/support/viewarticle/20571/
     commit/support/viewarticle/20502/
     addp4job/support/viewarticle/20574/
     addurls/support/viewarticle/20575/
    [Expand]admin/support/viewarticle/20581/
   Tray Notifier/support/viewarticle/20445/
   External Diff Viewer launcher/support/viewarticle/20569/
  [Expand]Eclipse Plug-in/support/viewarticle/20423/
   Print To Review/support/viewarticle/20550/
   Visual Studio Add-in/support/viewarticle/20554/
 [Expand]Version Control Integration/support/viewarticle/20425/
 [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: PoorPoorPoorPoorPoor 2 vote(s) Click to rate: PoorNot badAverageGoodExcellent

ccollab addversions

Top Previous Next

Usage: ccollab [global-options] addversions [--upload-comment <value> --version-spec <value> [<value> ...]] <review> [<file-path>] [<version>] [<predecessor-version>]

addversions - Attaches any 2 given versions to a review

Command Options

Option

Required?

Description

--upload-comment <value>

N

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

--version-spec <value> [<value> ...]

N

A version to be reviewed can be specified by a version-spec. A version-spec is given by <path> <version> [<previous-version>], where <path> is the filename or server path of the file, <version> is the version to be reviewed, and <previous-version> is an optional version that <version> should be diff'ed against. Each argument must be quoted if any embedded spaces exist in an argument. Typically a version-spec is not used on the commandline. Instead, specify the parts using the <file-path>, <version> and optionally the <predecessor-version> arguments

<review>

Y

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

<file-path>

N

Path of the file whose versions are to be added to the review. Requires a value for <version>

<version>

N

Version of the file to be added to the review. Required if <file-path> is given

<predecessor-version>

N

Predecessor version to be added to the review

(See Version Control specific description - ClearCase CMVC MKS Source Perforce Surround SCM Rational Synergy )

Uploads specific versions of a file or files to a review. A version-spec

is given by a file path followed by a version, and optionally, a predecessor

version:

file-path version [predecessor-version]

If no predecessor version is explicity given, diffs will be generated using

the predecessor version as determined from the SCM system.

Adding versions for a single file can be done with command line arguments

given after the review number. To upload versions for multiple files, the

file and versions may be submitted on lines read from standard input. If

the path and versions are not given on the command line, the client will

expect to read them from stdin. Each line read should be in the format shown

for the version-spec option. Some example command lines for reading versions

from stdin:

ccollab addversions 86753

ccollab addversions last < versionlist.txt

cat versionlist.txt | ccollab addversions new

When supplying the version list on the command line or in an input file, the

keyword 'local' can be used to denote the version corresponding to the local

version of the file. The 'local' keyword can only be used for the first

version argument, not the predecessor version.



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