最初のストリームを作成する

ストリームを使用して、作業内容を保存します。 最初に作成したストリームが、常にメインラインストリームになります。 ストリームの詳細については、ストリームを参照してください。

ストリームを作成するには、以下の手順を実行します。

  1. ストリームディポの名前とストリーム名を指定して、p4 streamコマンドを実行します。

    ここでは、-tオプションを使用して「main」というストリーム名を指定し、ストリームタイプとして「mainline」を指定します。

    $ p4 stream -t mainline //JamCode/main

    Helix Coreでは、ストリームの仕様が、エディタ内で以下のように表示されます。

    # A Perforce Stream Specification.
    #
    #  Stream:       The stream field is unique and specifies the depot path.
    #  Update:       The date the specification was last changed.
    #  Access:       The date the specification was originally created.
    #  Owner:        The user who created this stream.
    #  Name:         A short title which may be updated.
    #  Parent:       The parent of this stream, or 'none' if Type is mainline.
    #  Type:         Type of stream provides clues for commands run
    #                between stream and parent.  Five types include 'mainline',
    #                'release', 'development' (default), 'virtual' and 'task'.
    #  Description:  A short description of the stream (optional).
    #  Options:      Stream Options:
    #                       allsubmit/ownersubmit [un]locked
    #                       [no]toparent [no]fromparent mergedown/mergeany
    #  Paths:        Identify paths in the stream and how they are to be
    #                generated in resulting clients of this stream.
    #                Path types are share/isolate/import/import+/exclude.
    #  Remapped:     Remap a stream path in the resulting client view.
    #  Ignored:      Ignore a stream path in the resulting client view.
    #
    # Use 'p4 help stream' to see more about stream specifications and command.
    
    Stream: //JamCode/main
    
    Owner:  bruno
    
    Name:   main
    
    Parent: none
    
    Type:   mainline
    
    Description:
            Created by bruno.
    
    Options:        allsubmit unlocked notoparent nofromparent mergedown
    
    Paths:
            share ...

    ストリーム仕様により、ストリームの名前と場所、ストリームタイプ、親ストリーム、ストリームにバインドされているワークスペースのワークスペースビュー内のファイル、構成可能な動作が定義されます。 ストリームディポの名前の後にストリームの名前を組み合わせてストリーム名になることに注意してください(ストリームディポの名前の後にストリームの名前が続きます)。 ストリームの動作を構成するには、ストリーム仕様のフィールドを編集します。詳細については、ストリームを設定するを参照してください。

  2. p4 streamsコマンドを実行して、メインラインストリームが作成されたことを確認します。

    例:

    $ p4 streams //JamCode/...

    上記のコマンドを実行すると、以下の出力情報が表示されます。

    Stream //JamCode/main mainline none 'main'