Description
Use the ensure-diffs-reviewed
trigger to ensure that the difference between the current content and proposed content of each file is the same as the difference between the base and proposed content in the review by comparing the line-wise changes.
Command Line Syntax
ccollab [global-options] admin trigger ensure-diffs-reviewed [--ignore-integrate] [--no-keywords --review-id-regex <value>] <changelist-id>
Command Options
Option |
Required? |
Description |
---|---|---|
No |
Allow integration changes to proceed without review |
|
No |
Disallow keyword expansion |
|
No |
Regular Expression that identifies Review ID in commit comment |
|
Yes |
Changelist ID |
Installation
To install the trigger, add a line like this to your Perforce Triggers list:
ccollab change-content //depot/... "/usr/bin/ccollab --url <collabUrl> --user <collabUser> --password <collabPasswd> --scm perforce --p4port <p4port> --p4client %client% --p4user <p4user> --p4passwd <p4passwd> admin trigger ensure-diffs-reviewed %changelist%"
Some notes:
- Specify your installation directory for
ccollab
and replace <values> with appropriate data. Also, type all parameters in a single line even though the text above occupies several lines. - The Perforce user that you specify must have at least read-only access to the repository.
- On Unix systems, Perforce incorrectly recognizes arguments that include spaces. It ignores quotes and other standard ways of indicating that the data with spaces is actually one argument. The workaround is to use a separate bash script to call our trigger.
Remarks
If any of Collaborator clients have the smartbear.ccollab.upload.truncate.size VM option set up, consider using ccollab admin trigger ensure-reviewed instead of this trigger. This VM option truncates the uploaded files up to the specified size. As a result, the ensure-diffs-reviewed and ensure-content-reviewed triggers will compare only the remaining parts of the truncated files. |