Reference trees allow you to have a physical copy of the most recent sources for a stream. They are available for reference, thus the name reference tree. Snapshots never change, so they only need to be updated once using update –r and then you can forget about them.To create a reference tree, use the mkref command. To keep a reference tree up to date with its associated stream, you need to run update on the reference tree every time versions are promoted to the stream.AccuRev supplies the following trigger scripts to automate this procedure:A general-purpose script, which can be used to perform various tasks after completion of every promote command. In this case, we're going to have it call the update_ref.pl script.A script that invokes the update command to update the files in a reference tree. On a UNIX/Linux machine, this script must be setUID-root.
1. Make sure the following Perl scripts are installed in some directory on the search path of the AccuRev Server process’s user identity:server_post_promote.pl
update_ref.plSee Operating-System User Identity of the Server Processes on page 9 of the AccuRev Administrator’s Guide.
2. Edit both the server_post_promote.pl and update_ref.pl scripts, and follow the step-by-step instructions contained within them.pl2bat server_post_promote.pl
pl2bat update_ref.pl
4. accurev mktrig server-post-promote-trig server_post_promote.pl (UNIX/Linux)
accurev mktrig server-post-promote-trig server_post_promote (Windows)
AccuRev, Inc. |
Phone: 781-861-8700 |
Fax: 781-861-8704 |
support@accurev.com |