Perforce Server-Side Triggers

Top  Previous  Next

Triggers recommended for Perforce

ccollab admin trigger ensure-review-started - Changelist cannot be submitted until review of this changelist exists

ccollab admin trigger ensure-reviewed - Changelist cannot be submitted until review of this changelist has been completed

ccollab admin trigger ensure-content-reviewed - Changelist cannot be submitted until review completed & file list/content is unchanged

ccollab admin trigger update-changelist - Automatically update Perforce changelist with information about the review of that changelist

 

The ensure-review-started, ensure-reviewed, or ensure-content-reviewed triggers ensure that changelists cannot be submitted unless certain conditions are met.  If a user attempts to submit a changelist that doesn't meet those conditions, an error message describing the unfulfilled conditions will be displayed and the changelist will not be submitted.  If the conditions are met, the submit will be allowed to continue normally.
The update-changelist trigger adds or updates a one-line description in the changelist description automatically every time a changelist is edited or submitted .  This means users can see the data update whenever they edit the description text. This trigger uses the ${...} variable substitution subsystem to let you insert dynamic data, which could include the review id, participants, and so on.  See the substitution system topic for details on what variables you can include.

For more information about Perforce triggers in general, see Chapter 6 of the Perforce System Administrator's Guide.