Set up streams
To set up streams for the first time, you must create a stream depot and create and populate a mainline stream.
To create a stream depot:
- Launch P4Admin (from P4V, choose Tools > Administration) and connect to Helix Core Server as a user that has admin privilege.
-
Choose File > New… > Depot, specify a name for the stream depot, such as "projectA", and click OK.
The Depot dialog box is displayed.
- For Depot Type, choose stream.
- Click OK, and verify that your new stream depot is listed in the Depots tab.
To create the mainline stream:
- Launch P4V and connect to the Helix Core Server where you want your streams to reside.
-
Choose File > New > Stream.
The Stream: New dialog box is displayed.
- Specify the
Stream Name
("main" is a typical name), depot, and root folder. Omit parent because the mainline is parentless. - For
Stream Type
, choose "mainline". - Select the stream depot for this stream, such as the "projectA" depot.
- Notice that the
Location
has the format//depotName/streamName
, such as//projectA/main
- Click OK to save your stream specification.
-
Verify that your new mainline stream is displayed in the Streams tab. Note that the mainline stream is not displayed in the Depot tab until you populate it with files.
For more information, see Create streams.
To populate your mainline stream:
- Copy some files or folders to the root folder of the workspace of the stream.
- In P4V, switch to the left-pane Workspace tab. Your files are displayed undecorated (that is, as plain file icons), which indicates that they are not under Helix Core Server control.
-
Right-click the top-level folder and choose Mark for Add….
-
Click OK.
In the Pending Changelists tab, verify that your files are listed in the default changelist, decorated with a red plus sign.
-
Right-click the default changelist and choose Submit….
The Submit Changelist dialog box is displayed.
- Enter a descriptive comment and click Submit.
You can populate streams by branching files from existing depot locations.
To verify that your files have been submitted, check the Log pane at the bottom of the screen and the left-pane Depot tab. If your submission succeeded, your files are listed in the mainline folder in your stream depot. Now you can branch the files in the mainline to development and release streams, edit files in those streams, and propagate changes among them.