mkstream

Creates a stream for a project

APPLICABILITY


Product

Command Type

ClearCase


cleartool subcommand


ClearCase LT


cleartool subcommand


Platform

UNIX


Windows

SYNOPSIS

mkstream -int·egration -in project-selector

[ -c·omment comment | -cfi·le pname | -cq·uery | -cqe·ach | -nc·omment ]
[ -bas·eline baseline-selector[,... ]]
[ -pol·icy policy-keyword[,... ]]
[ -npo·licy policy-keyword[,...]]
[ -tar·get stream-selector ]
[ stream-selector...]
mkstream {-in project-selector | stream-selector }

[ -c·omment comment | -cfi·le pname | -cq·uery | -cqe·ach | -nc·omment ]
[ -bas·eline baseline-selector[,... ]]
[ -pol·icy policy-keyword[,... ]]
[ -npo·licy policy-keyword[,...]]
[ stream-selector...]

DESCRIPTION

The mkstream command creates a stream for use with a UCM project. A stream consists of a name, a set of baselines that configure the stream, and a record of the set of activities associated with the stream.

There are two kinds of streams with UCM projects:

To create an integration stream, you must specify its project. Note that a project's integration stream must be present before a development stream can be created.

To create a development stream, you must specify a stream as its parent. Specifying a project is equivalent to specifying the project's integration stream. By default, the development stream delivers to the integration stream and rebases from recommended baselines of the integration stream. If you specify a development stream as its parent, the stream becomes the child of that development stream and by default delivers to and rebases from its parent.

Optionally, you can assign the stream a set of foundation baselines. Foundation baselines specify a stream's configuration by selecting the file and directory versions that are accessible in the stream.

Streams are accessed through views (see mkview -stream). A stream can have more than one view attached to it.

Stream Policies

You can set or unset policies for integration streams or development streams. Note that the project's policy settings take precedence over the stream's settings, unless -spolicy is used in the project to allow individual streams to control the policy. Table 13 describes these policies and lists the keywords used to set them. For more information about setting policies, see Managing Software Projects.

Table 13 UCM Stream Policies


Policy

Keyword

Require a development stream to be based on the current recommended baselines of its parent stream before it can deliver changes to the parent stream.


POLICY_DELIVER_REQUIRE_REBASE


Do not allow delivery from a development stream that has checkouts.


POLICY_DELIVER_NCO_DEVSTR


Allow a deliver operation from a stream in the same project to include changes from the stream's foundation baselines


POLICY_INTRAPROJECT_DELIVER
_FOUNDATION_CHANGES


Allow a deliver operation from a stream in the same project to contain changes in components that are not included in the target stream's configuration. The changes in the missing components are not delivered.1


POLICY_INTRAPROJECT_DELIVER
_ALLOW_MISSING_TGTCOMPS


Allow a stream from a different project to deliver changes from its stream to this stream.


POLICY_INTERPROJECT_DELIVER


Allow a deliver operation from a stream in a different project to include changes from the stream's foundation baselines. This policy is ignored if interproject delivery is disabled.


POLICY_INTERPROJECT_DELIVER
_FOUNDATION_CHANGES


Require a deliver operation from a stream in a different project to deliver changes in all components. This policy is ignored if interproject delivery is disabled.1


POLICY_INTERPROJECT_DELIVER
_REQUIRE_TGTCOMP_VISIBILITY


Allow a deliver operation from a stream in a different project to contain changes in components that are not modifiable in the target stream's configuration. The changes in the nonmodifiable components are not delivered. This policy is ignored if interproject delivery is disabled.


POLICY_INTERPROJECT_DELIVER
_ALLOW_NONMOD_TGTCOMPS


1. Defaults are different for intraproject and interproject deliver operations.

RESTRICTIONS

Identities: No special identity required.

Locks: An error occurs if there are locks on any of the following objects: the UCM project VOB, the project, the parent stream (for development streams).

Mastership: (Replicated VOBs only) No mastership restrictions.

OPTIONS AND ARGUMENTS

SPECIFYING THE STREAM'S ROLE IN THE PROJECT. Default: Development stream.

-int·egration

Creates an integration stream, which is used for shared elements on a project and as a source for recording baselines. Each project can have exactly one integration stream.

SPECIFYING THE STREAM'S PARENT. Default: None.

-in project-selector | stream-selector

Specifies the stream's parent. For an integration stream, it must be a project. For a development stream, it can be an integration stream or another development stream.
project-selector is of the form [project:]project-name[@vob-selector], where vob-selector specifies the project's project VOB.
stream-selector is of the form [stream:]stream-name[@vob-selector], where vob-selector specifies the stream's project VOB.

EVENT RECORDS AND COMMENTS. Default: Creates one or more event records, with commenting controlled by your .clearcase_profile file (default: -c). See the comments reference page. Comments can be edited with chevent.

-c·omment comment | -cfi·le comment-file-pname |-cq·uery | -cqe·ach | -nc·omment

Overrides the default with the option you specify. See the comments reference page.
STREAM CONFIGURATION. Default: The stream's configuration is empty (that is, it has no foundation baselines).
-bas·eline baseline-selector[,... ]

Specifies one or more baselines to use as the stream's initial configuration-you can subsequently use rebase to change the stream's configuration.
baseline-selector is of the form [baseline:]baseline-name[@vob-selector], where vob-selector specifies the baseline's project VOB.
The following restrictions apply to the specified baselines:

SETTING PROJECT POLICY. Default: None.

-pol·icy policy-keyword[,... ]

Enables the specified policy. See Stream Policies.
-npo·licy policy-keyword[,... ]

Disables the specified policy. See Stream Policies.

SETTING THE DEFAULT DELIVER TARGET FOR INTEGRATION STREAMS ONLY. Default: None.

-tar·get stream-selector

Specify the default deliver stream of an integration stream. The target must be a stream in a different project and mastered in the local replica.
stream-selector is of the form [stream:]stream-name[@vob-selector] and where vob-selector specifies the project VOB of a different project.

SPECIFYING THE STREAM NAME. Default: A generated name.

stream-selector ...

Specifies a stream name.
You can specify the stream as a simple name or as an object selector of the form [stream]:name@vob-selector, where vob-selector specifies a project VOB (see the cleartool reference page). If you specify a simple name and the current directory is not a project VOB, then this command assumes the stream resides in the project VOB associated with the current view. If the current directory is a project VOB, then that project VOB is the context for identifying the stream.

EXAMPLES

The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.

The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.

In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.

NOTE: In the UNIX examples that follow, arguments and output that show multicomponent VOB tags are not applicable to ClearCase LT, which recognizes only single-component VOB tags. In this manual, a multicomponent VOB tag is by convention a two-component VOB tag of the form /vobs/vob-tag-leaf-for example, /vobs/src. A single-component VOB tag consists of a leaf only-for example, /src. In all other respects, the examples are valid for ClearCase LT.

SEE ALSO

chproject, chstream, lsstream, rebase, rmstream