set or clear multiple include/exclude rules for a workspace or stream
accurev mkrules -l <file>
The mkrules command uses an XML-format file to set one or more include/exclude rules for a workspace or stream. The following example demonstrates the structure of the input file:
<comment>set two rules for a workspace</comment>
You can create an input file for mkrules by revising the output of an lsrules -fmx command as follows:
Remove the top-level tags: <AcResponse> and </AcResponse>.
To clear an existing rule, change the value of the kind attribute from incl/incldo/excl to clear.
The <depot> element is required unless you are running this command from within a workspace.
The <stream> element is optional; if you omit it, mkrules operates on the current workspace.
Note: If the <stream> element is omitted, mkrules must be run from within a workspace.
The <comment> element is optional; it places a comment string in the AccuRev transaction that mkrules creates.
Specifies the location of the XML-format message (document), containing the set of include/exclude rules to be set or cleared.