The excl command excludes the specified element (either a directory or a file) from a particular workspace or stream. If you don’t use the
-s option to name a stream,
excl operates on the workspace containing the current working directory.
When you exclude elements from a higher-level stream, the exclusion instantly applies to streams below it in the depot’s stream hierarchy. The exclusion also applies to workspaces below the stream, but the elements don’t disappear from a workspace until you update it. This inheritance of exclusions down the stream hierarchy stops at snapshots and at dynamic streams whose basis time precedes the time of the exclusion. The element exclusions don’t apply to the snapshot (which is, by definition, immutable) or to that time-based stream.
Using mkws with the
-i option (to create an initially empty workspace) is a useful technique for organizations that use
incl and
excl to control which elements appear in a workspace.
Exclude the src directory tree from the current workspace:
Exclude the src directory tree from stream
gizmo_dvt: