Is there a way to create an RTC snapshot or a baseline based on a past date?

I would like to create a new thread based on the state of an existing thread on a given date. To do this, it seems logical to create a baseline in the source stream at a past date / time, but I have not found a way to do this.

Can I create a baseline or snapshot at any time other than the current state of the component / stream?

Thanks, John

+6
source share
3 answers

What can you do:

  • Create a new thread with the old base (created until the last date you are looking for)
  • create repo workspace
  • Add to the thread target section of this repo workspace the current thread that you worked on earlier (and which includes all the latest changesets created after the "past date").
  • setting the current stream as "current" in the "Purpose of the stream" section.

This will display all change sets (created after this old baseline) as “for acceptance” (in the “Inbox” section of your repo workspace in the “pending changes” view.

Then you must accept this change set from the oldest to one change set created on a given date.
You do not accept the remaining changeset created after this date.

You can:

  • create a baseline (just to record the status of the code base that you just created, with all your changesets accepted)
  • set the new thread as the current one in the “Target Streams” section of your repo workspace.
  • execute this new baseline
  • will start working in this new thread.
+6
source

The answer given by @VonC is IMO, the best way to create a stream based on arbitrary time in the past that is not referenced by the baseline.

To answer the second question: "Is it possible at any time to create a baseline or snapshot, except for the current state of the component / stream?"

Basic level - no. Baselines record the current state of a component.

Snapshot - if you do not have baselines for the link, then there is no way to create a snapshot that points to some point in the past. However, if the component’s baseline exists, you can create a snapshot that points to this baseline, even if changes have occurred to the component from this baseline. Here's how:

Let's say that the baselines BLN1 and BLN2 are two baselines on the COMP component that record different states of this component (the last BLN2). To create SNP1 snapshot in the stream my_stream, which encapsulates BLN1, you must do the following:

  • Create a new stream (call it test_stream) and add the component COMP @ BLN1
  • Create an SNP1 snapshot in test_stream: select BLN1 for the base value.
  • Delete this new stream test_stream - at this point you will be prompted to move the SNP1 snapshot to another stream. Select my_stream.
  • After test_stream is deleted, the lost snapshot of SNP1 will find a new home in my_stream and will also point to the old base line BLN1.

This works in RTC v4.0.3 - if you are using a different version of RTC, you can first try this in the test project area.

+3
source

Create a workspace that points to the stream containing the baseline, and select the component you want. In the workspace editor, select the component and click the "Replace with ..." button, select "Component Database", click "Next" and select the baseline.

0
source

Source: https://habr.com/ru/post/949477/


All Articles