Create a stream depot
For an introduction to streams, see the Streams chapter.
Create a stream depot in which the stream you create in the next step will reside.
- At the command line, run the p4 depot command:
p4 depot -t stream JamCode
The
-t
option specifies the type of depot to create, in this case a stream depot. JamCode is the name of the depot you’re creating. -
Notice that the depot specification opens in your text editor:
Copy# A Perforce Depot Specification.
#
# Depot: The name of the depot.
# Owner: The user who created this depot.
# Date: The date this specification was last modified.
# Description: A short description of the depot (optional).
# Type: Whether the depot is 'local', 'remote',
# 'stream', 'spec', 'archive', 'tangent',
# or 'unload'. Default is 'local'.
# Address: Connection address (remote depots only).
# Suffix: Suffix for all saved specs (spec depot only).
# StreamDepth: Depth for streams in this depot (stream depots only).
# Map: Path translation information (must have ... in it).
# SpecMap: For spec depot, which specs should be recorded (optional).
#
# Use 'p4 help depot' to see more about depot forms.
Depot: JamCode
Owner: bruno
Date: 2024/02/22 13:20:06
Description:
Created by bruno.
Use a tab to indent any lines below the field name!
Type: stream
StreamDepth: //JamCode/1
Map: JamCode/... - Regarding the StreamDepth: field, see "Working with stream depots" in the Helix Core Command-Line (P4) Reference.
- Save the file and exit the editor.
- Notice that the command line now shows: Depot JamCode saved.