Click or drag to resize

RepositoryConvertSparseStream Method

Converts a sparse stream to a development/release stream. If stream is not already open, the stream specification will be opened and any unbranched files from the parent stream will be opened in the workspace for branch to the stream in default changelist.

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2025.1.277.3624
Syntax
public string ConvertSparseStream(
	Options options
)

Parameters

options
Type: Perforce.P4Options
options for the stream convertsparse command

Return Value

Type: String
Returns result during conversion of a sparse stream to a development/release stream.
Remarks

p4 help streamcmds

p4 stream convertsparse [-q]

'p4 stream convertsparse' converts a sparsedev or sparserel stream to
either a development or release stream.If it is not already open, the
stream specification will be opened and any unbranched files from the
parent stream will be opened in the workspace for branch to the stream.
-q Suppress normal output messages.Messages regarding
errors or exceptional conditions are displayed.
Examples
To convert the stream currently assigned to the client to either development/release:
//Establish connection with server and assign a client to a repository
which has sparserel/sparsedev stream.
string result = rep.ConvertSparseStream(new StreamCmdOptions(StreamCmdFlags.Convertsparse, null, null, false));
//User can pass boolean value to true to set the -q flag to suppress normal output messages.
See Also