ccollab addhgdiffs

Applies to Collaborator 11.5, last modified on December 21, 2021

Description

The ccollab addhgdiffs command uploads differences between arbitrary versions of files in Mercurial. The differences are generated using the native hg diff command of Mercurial.

Command Line Syntax

ccollab [global-options] addhgdiffs [--upload-comment <value>] <review> [<user-diff-arg> [<user-diff-arg> ...]]

Command Options

Option

Required?

Description

--upload-comment <value>

No

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

<review>

Yes

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

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

No

Command-line arguments to pass directly to the diff command

Remarks

Do not use diff arguments that affect the diff output such as -U unified. The Collaborator command-line client will automatically select an output format that ensures you will get all the data you need on the server.

Mercurial treats Microsoft Office documents (.doc, .docx, .xls, .xlsx) and PDF files as binary files. Thus, the native hg diff command is not able to generate meaningful difference for these types of files. Because of this the ccollab addhgdiffs command is also unable to upload differences between Microsoft Office documents (.doc, .docx, .xls, .xlsx) and PDF files.

Examples

To upload all changes between revisions 4 and 8:

ccollab addhgdiffs new -r 4 -r 8

To upload all changes in your local working directory:

ccollab addhgdiffs new .

See Also

Mercurial Integration
ccollab addchanges (for Mercurial)

Highlight search results