View a stream as of a specific changelist
The StreamAtChange
option in the client spec lets you use
the version of the stream specified as of a particular changelist to
generate a workspace view. This is helpful when you want to see what the
stream view was at a particular point in time, especially if your stream
spec changes a lot (for example, if you frequently change what you’re
importing or what you’re deciding to share). When you use the
StreamAtChange
option, you cannot submit changes to the
files in the stream, since your workspace view is not up to date.
To set a stream workspace to use the version of the stream specified as of a particular changelist, do the following:
-
Open the stream’s workspace specification form for editing.
$ p4 client
-
Use one of the following alternatives:
- Edit the form to set
StreamAtChange:
to the changelist you want to view the stream as of. Or, -
Issue this command:
$ p4 client -S //Ace/main@12546
- Edit the form to set
For more information, see the Helix Core Command-Line (P4) Reference.
Alternatively, you can issue the following command to sync a stream using the stream’s view as of a specific changelist:
$ p4 switch [-r -v] stream@change
This command both sets the StreamAtChange
value and syncs
to the same change.