Create a stream depot

Note

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.

  1. At the command line, type the following:
    $ 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.

  2. Notice that the depot specification opens in your text editor:

    # 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:           2018/02/22 13:20:06
    Description:
                    Created by bruno.
    
    Type:           stream
    StreamDepth:    //JamCode/1
    Map:            JamCode/...
  3. Regarding the StreamDepth: field, see "Working with stream depots" in Helix Core P4 Command Reference.
  4. Save the file and exit the editor.
  5. Notice that the command line now shows: Depot JamCode saved.