Create and populate child streams

After populating the mainline, you can branch files for development and for release.

In this example, we create a development stream whose parent stream is the mainline stream:

p4 stream -t development -P //JamCode/main //JamCode/dev

P4 Server displays the stream specification with the type set to development.

The specification includes:

Name: dev
Parent: //JamCode/main
Type: development

Save the specification and exit the editor.

Stream //JamCode/dev saved.

To populate the stream, run the p4 populate command:

p4 populate -d "From main" -S //JamCode/dev -r

where "From main" is the description in the specification.

To make sure you have the latest version of the files, run the p4 sync command:

p4 sync