The lsrules command displays the include/exclude rules for your workspace, or for a stream that you specify with the
-s option. By default, the listing also includes the rules that apply to the workspace (or stream) by virtue of being inherited from higher-level streams. Such rules are listed with
-s <stream> to indicate the stream in which they were set.
Note: Setting an include/exclude rule for a workspace affects it immediately. Accordingly,
lsrules lists the rules that are currently in effect for a workspace, not the rules that were in effect at the time of the most recent
update.
To restrict the listing to the rules that were explicitly set in your workspace (or stream), use the -d option. Conversely, use
-R in combination with
-s to list the rules set in all streams and workspaces in an entire stream subhierarchy.
m: (must specify
x, also) Make the XML-format output suitable for input to the
mkrules command. This makes it easy to copy a set of include/exclude rules from one stream to another. See the
mkrules reference page for instructions on how to edit this output.
List, in XML format, the include/exclude rules for stream gizmo_int, along with rules inherited from higher-level streams: