Creating Gated Streams

You can create gated streams anywhere in your depot’s stream hierarchy that you choose, but it is common to create them as children of your build, test, and integration streams to ensure that code from individual contributors does not introduce errors that will affect other users. You might still wish to include manual processes such as code reviews as part of your development process, of course, but gated streams allow you to automate aspects of the development lifecycle to ensure a baseline level of quality and operability.

You can create gated streams using the StreamBrowser or the AccuRev CLI as described in the following procedures.

From the StreamBrowser

To create a gated stream from the StreamBrowser:

  1. Identify the stream you want to use as the gated stream’s parent stream.

  2. Right-click the parent stream and choose New Stream from the right-click menu.

  3. In the New Stream dialog box, enter a name for the gated stream in the Name field.

  4. In the Stream Type field, choose Gated stream.

  5. Click OK.

Using the CLI

To create a gated stream using the AccuRev CLI:

  1. Identify the stream you want to use as the gated stream’s parent stream.

  2. At the command line, enter:

  3. accurev mkstream -s <gated stream name> -b <backing stream name> —gated