Reputation: 706
I'd like to create a new stream based on the state of an existing stream at a given date. To do this, it seems the logical thing to do would be to create a baseline in the source stream at a past date/time, but I've not found a way to do that.
Is it possible to create either a baseline or snapshot at any time other than the current state of the component/stream?
Thanks, John
Upvotes: 6
Views: 5380
Reputation: 1142
Create a workspace pointing to stream that contains the baseline and select the desired component. On workspace editor, select component and click the button "Replace With...", select "Component baseline", click next and select the baseline.
Upvotes: 0
Reputation: 187
The answer given by @VonC is, IMO, the best way to create a stream based on an arbitrary time in the past that is not referenced by a baseline.
To answer your second question "Is it possible to create either a baseline or snapshot at any time other than the current state of the component/stream?"
Baseline - no. Baselines record the current state of the component.
Snapshot - If you have no baselines to refer to, then there is no way to create a snapshot that points to some point in the past. However, if a component baseline exists, it is possible to create a snapshot that points to this baseline even if changes have occurred in the component since this baseline. Here's how:
Say baselines BLN1 and BLN2 are two baselines on component COMP that record different states of this component (BLN2 being the latest). To create a snapshot SNP1 on the stream my_stream that encapsulates BLN1, you'd do the following:
This works in RTC v4.0.3 - if you use a different version of RTC, you may want to try this out in a test project area first.
Upvotes: 3
Reputation: 1325137
What you can do is:
That will list all the change sets (created after that old baseline) as "to be accepted" (in the "Incoming" section of your repo workspace in your "pending changes" view.
You would then accept those change set, from the oldest up until one change set created at the target date.
You would not accept the remaining change set created after that date.
You can then:
Upvotes: 6