ccollab addp4diffs

Applies to Collaborator 14.5, last modified on April 18, 2024

Description

The ccollab addp4diffs command uploads differences between arbitrary versions of files in Perforce. The differences are generated using the native p4 diff2 command of Perforce.

Command Line Syntax

ccollab [global-options] addp4diffs [--upload-comment <value>] <review> [<p4-diff-arg> [<p4-diff-arg> ...]]

Command Options

Option

Required?

Description

--upload-comment <value>

No

Comment used to upload files (defaults to command-line arguments)

<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).

<p4-diff-arg> [<p4-diff-arg> ...]

No

Options which should be passed to the p4 diff2 command

Remarks

Do not use diff arguments that affect the diff output such as -q, -t, -d<flag>, or -s<flag>. The Collaborator command-line client will automatically select an output format that ensures you will get all the data you need on the server.

Examples

ccollab addp4diffs 698 //depot/file1 //depot/file2

ccollab addp4diffs new //depot/...@1523 //depot/...

ccollab addp4diffs 698 -b my-branch

See Also

Perforce Integration
ccollab addchangelist (for Perforce)
ccollab addp4job
ccollab addversions (for Perforce)
ccollab commit (for Perforce)

Highlight search results