A trigger is a callback built into certain AccuRev commands. When a user enters the command, the corresponding trigger causes a user-defined or built-in procedure to be performed just before or after the command executes. Typically, a user-defined procedure is implemented as a script in the Perl scripting language. Sample Perl scripts are available in the
examples subdirectory of the AccuRev installation directory.
AccuRev supports pre-operation triggers, post-operation triggers, and triggers that integrate issue management into AccuRev’s configuration management. The latter category of triggers have pre- and post-operation components.
Some triggers are set with the mktrig command; others are set by placing the script at a special location; yet others are set through the Schema Editor in the GUI.