Download The AccuRev Repository

Transcript
•
The second argument is the pathname of an XML-format file containing the same
information. (In some cases, detailed below, the XML-format file contains a small amount of
additional information that is not contained in the flat-text file.)
Exceptions: only one argument, the pathname of an XML-format file, is passed to a
server_preop_trig script or a server_admin_trig script.
We use the term trigger parameters file to describe both these files. The flat-text file contains a
series of values — usually one value per line — in a prescribed order. The XML-format file
contains a set of elements below the top-level <triggerInput> element. Each such element
contains the information for one parameter: the parameter name is the element tag, the parameter
value is the element contents (sometimes encoded as a set of subelements). For example, here are
two trigger parameters files generated by the same user command:
Flat-text trigger parameters file
pre-create
talon
talon_dvt_john
4
adding some files
this multi-line
comment has
four lines
C:/wks/talon/dvt_john
john
/tools/cont.sh
/tools/end.sh
/tools/start.sh
XML-format trigger parameters file
<triggerInput>
<hook>pre-create</hook>
<depot>talon</depot>
<stream1>talon_dvt_john</stream1>
<changePackages></changePackages>
<comment>adding some files
this multi-line
comment has
four lines</comment>
<topDir>C:/wks/talon/dvt_john</topDir>
<principal>john</principal>
<elemList>
<elem>/tools/cont.sh</elem>
<elem>/tools/end.sh</elem>
<elem>/tools/start.sh</elem>
</elemList>
</triggerInput>
The information contained in the trigger parameters file varies among the trigger types, as
described in the following sections.
Format of the “pre-create-trig” Trigger Parameters File
The following table presents the information in the trigger parameters file sent to a pre-createtrig script. This information describes the creation of one or more new elements to a depot (CLI:
add, GUI: Add to Depot).
The order of the parameters in this table is the order in which they appear in the flat-text trigger
parameters file. (Less importantly, it’s also the order in which they appear in the XML-format
trigger parameters file.)
280
AccuRev Administrator’s Guide