Click or drag to resize

RepositoryGetStreamMetaData Method

Get the integration status for a stream in the repository

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2024.1.265.5426
Syntax
public StreamMetaData GetStreamMetaData(
	Stream stream,
	Options options
)

Parameters

stream
Type: Perforce.P4Stream
The stream to get integration status on
options
Type: Perforce.P4Options
options for the istat command

Return Value

Type: StreamMetaData
The integration status of the stream
Remarks

p4 help istat

istat -- Show/cache a stream's integration status

p4 istat [ -a -c -r -s ] stream

'p4 istat' shows a stream's cached integration status with respect
to its parent. If the cache is stale, either because newer changes
have been submitted or the stream's branch view has changed, 'p4
istat' checks for pending integrations and updates the cache before
showing status.

Pending integrations are shown only if they are expected by the
stream; that is, only if they are warranted by the stream's type
and its fromParent/toParent flow options. (See 'p4 help stream'.)

The -r flag shows the status of integration to the stream from its
parent. By default, status of integration in the other direction is
shown, from the stream to its parent.

The -a flag shows status of integration in both directions.

The -c flag forces 'p4 istat' to assume the cache is stale; it
causes a search for pending integrations. Use of this flag can
impact server performance.

The -s flag shows cached state without refreshing stale data.

Examples
Get the direction of integration for stream "//Rocket/GUI" with respect to its parent:
Stream s = rep.GetStream("//Rocket/GUI",null,null);
StreamMetaData smd = rep.GetStreamMetaData(s, null);
StreamMetaData.IntegAction action = smd.IntegToParentHow;
Get the direction of integration for stream "//Rocket/GUI" from its parent:
Stream s = rep.GetStream("//Rocket/GUI",null,null);
StreamMetaData smd = rep.GetStreamMetaData(s,new Options(GetStreamMetaDataCmdFlags.Reverse));
StreamMetaData.IntegAction action = smd.IntegFromParentHow;
See Also