What types of triggers does AccuRev support?

0 Likes

What types of triggers does AccuRev support?
QUESTION:
What types of triggers does AccuRev have and what examples are provided with the server installation?

ANSWER:
AccuRev has both client-side and server side triggers. Some triggers are pre-op triggers, meaning that they fire when a command is executed before the command is completed and have the capability of canceling execution of the user's command. Others are post-op triggers that fire at the completion of a command.

We offer various example trigger scripts written in Perl. These examples can be found in the ...\AccuRev\examples directory of the server installation. For more information on how to install the Perl modules for the example trigger scripts, please see FAQ #37.

Here are the types of triggers we offer and the example triggers for that category that come with the AccuRev installation:

Client:
pre-create-trig: elem_type.pl (used to determine whether a file is to be added to the depot as Binary or Text based upon the extension.)

pre-keep-trig: addheader.pl (used for RCS keyword expansion)

pre-promote-trig: no examples provided

Server:
server_admin_trig: server_admin_trig.pl (used to control who can perform the operations: mkuser, chuser, chpasswd, chref, chdepot, chslice, lsacl, addmember, rmmember, mkgroup, mkdepot, mktrig, rmtrig, setacl, write_schema, lock, unlock, chws, chstream, mkstream, remove, mkws, defcomp)

server_preop_trig: server_preop_trig.pl (used to control who can add, keep, promote, or purge from a particular stream)

server-post-promote-trig: server_post_promote.pl (used to call other triggers after a promote such as email_post_promote.pl, which sends email notification of the promote transaction, and update_ref.pl, which automatically updates reference trees after a promtoe transaction)

server_dispatch_post: server_dispatch_post.pl (used to send email notifications out when new Dispatch issues are created and/or modified)

Refer to the online AccuRev User's Guide (CLI) for a complete description on each command and available syntax.


For more information contact AccuRev support.

Comment List
Anonymous
Related Discussions
Recommended