ccollab addchangelist (for PTC Integrity)

Applies to Collaborator 14.7, last modified on December 18, 2024

Description

The ccollab addchangelist command attaches all files from a change package controlled by PTC Integrity client (PTC Source) to a review on the Collaborator server.

Command Line Syntax

ccollab [global-options] addchangelist <review> <changelist> [<changelist> ...] --exclude <file-mask list> --include <file-mask list>

Command Options

Option

Required?

Description

[global-options]

No

A number of global or PTC-specific global options. See Command-line Global Options Reference.

<review>

Yes

Identifier of the desired review (an integer number), or a new, ask, or last keyword. Where keywords define the following behaviour:

  • new - the command will create a new review,
  • ask - the command will pause execution and prompt for the identifier of the desired review,
  • last - the command will use the last review that was created on the current machine via Command-Line Client (that is, it does not know about reviews created elsewhere).

<changelist> [<changelist> ...]

Yes

Identifier(s) of the desired changeset(s) in your source control.

--exclude <file-mask list>

No

Exclude files from changelist(s), that match specified mask(s), will be ignored (changelist command uploads to review only files that don’t match the masks).

When no files in changelist are matches to the mask(s) then whole changelist is uploaded ('exclude' option is ignored)

--include <file-mask list>

No

Includes only files that match specified mask(s) will be uploaded to review.

When no files in changelist are matches to the mask(s) then nothing is uploaded.

--skip-if-exists

No

Set whether to skip changelist if it already exists in review.

-ignore-empty-changelists

No

Set whether empty changelist errors will be ignored when multiple changelists are uploaded. If all changelists are empty the command will throw an exception anyways.

Examples

The following command uploads the change packages 1:2 and 3:2 to a new review:

ccollab addchangelist new 1:2 3:2

The following command adds the change packages 1:1 and 3:1 to the review with the identifier 182:

ccollab addchangelist 182 1:1 3:1

The following command uploads the change package 1:2 with all .java and .txt files except that started with 'test' to a new review

ccollab addchangelist new 1:2 --include '*.java, *.txt' --exclude 'test*.*'

See Also

PTC Integrity Integration
ccollab addchangelist
ccollab addchanges (for PTC Integrity)
ccollab addversions (for PTC Integrity)

Highlight search results