Stream views and paths
A stream specification has a set of field names (see p4 stream). The Paths, Remapped, and Ignored fields define the stream View
. These fields control the files and paths that compose a stream and
define how those files are propagated.
- A
mainline
stream has no parent. - A sparse stream (
sparsedev
,sparserel
),task
stream, orvirtual
stream always inherits its view from its parent stream. - A
development
orrelease
stream can be set to inherit or not inherit from the parent stream.
To modify the structure of the child stream, specify the paths as follows:
Type | Sync? | Submit? | Integrate to/from Parent? | Remarks |
---|---|---|---|---|
|
Y |
Y |
Y |
(Default) For files that are edited and propagated between parent and child streams. All files in a shared path are branched and, in general, shared paths are the least restricted. |
|
Y |
Y |
N |
For files that must not be propagated outside the stream, but can be edited within it, such as binary build results. |
|
Y |
N |
N |
Files in this path are mapped as in the parent stream's view (the default) or to If If For example:
|
|
Y |
Y |
N |
Similar to an import path because it can reference an
explicitly defined depot path, but unlike a standard import path
because you can submit changes to the files in an
|
|
Y |
N |
N |
Similar to an import path, except that multiple Files marked this way are readonly. The
This feature does not support graph depots A depot of type graph that is used to store Git repos managed by Helix Core Server. See also Git Connector and classic depot. Such one-to-many mapping is also called ditto mapping. To learn more, see the example of ditto mapping for stream specs in the p4 stream topic of Helix Core Command-Line (P4) Reference. |
|
N |
N |
N |
Files in the parent stream that must never be part of the child stream. |
In this example,
Paths: share ... import src/... import lib/... //depot/lib3.0/... isolate db/...
-
Files in the
src
path are not submittable and are imported from the parent stream’s view. -
Files in the
lib
path are not submittable and are imported from an explicitly-specified location in the depot. -
Files in the
db
path can be edited and submitted in the stream, but cannot be copied to the parent.
The paths are used to generate the mappings for workspaces that are associated with the stream. If the stream structure changes, the workspace views are updated automatically and cannot be altered manually. If the stream is locked, only the stream owner, which might be a user or a group, can edit the stream specification.
A stream specification can also:
-
Remap file locations so that a file in a specified depot location is synced to a different location in the workspace.
-
Screen out files according to file type.
For example, to ensure that object files and executables are not part of the stream, add to the stream specification:
Ignored: .o .exe
To learn more, see Ignoring groups of files when adding.
Wildcards
Allowed | Not Allowed |
---|---|
|
Leading wildcard at the root level isolate ....txt |
Leading wildcard at a subdirectory level
|
Overlay mappings
Stream specs do not allow overlay mapping (+
), with the exception of Sparse streams, which always have an overlay mapping.
Also in this section: