문제

I created a new snapshot of a stream. As a result of this one of the components of the stream now has a new baseline. This new baseline has same name as newly created snapshot. Why did this occur ?

도움이 되었습니까?

해결책

A snapshot will take a... snapshot of the latest change set delivered on the Stream.

As mentioned in "difference between snapshot and baseline":

You can snapshot the state of either a workspace or a stream, whichever you prefer.
That will automatically create baselines when needed, i.e., when the current configuration of a component in that workspace/stream is not currently captured in a baseline.

When you create a baseline on a workspace component, it baselines the source versions currently selected by the workspace from that component.

Once it is created, you can use a snapshot or baseline anywhere you want (i.e. it is not in any way "tied" to the workspace or stream on which it was created).

It is true that the "deliver" operation from a workspace to a stream also causes baselines in that workspace to show up in baseline history of the stream.

Some folks believe that the "deliver" operation should only deliver change sets, and not baselines, because of the confusion that can occur when the baseline history in the workspace and stream have diverged.
(In particular, I'd prefer that you would just explicitly create baselines in a stream when you want them).
One advantage of this approach is that snapshots and baselines would have consistent semantics (currently, baselines are affected by a deliver operation, but snapshots are not).

다른 팁

I think I know the answer to this. A change set was delivered to the component in the stream where new baseline was created. So when I created a new snapshot it created a new baseline for this component because it contained a new change set so it differed from original baseline.

In our case, every baseline is created and used exactly once. After a couple of years and many developers using Jenkins to build dev/int/prod variations and unit test them we have a couple hundred thousand baselines that were never used for anything other than generating one snapshot apiece. Never looked at again, never providing any further value, and only serving to chew up terabytes of disk space.

The correct answer is to use a different SCM tool but management is not technical and the sales people at Rational sold an excellent product that does not quite fit our development needs. Creating snapshots from a stream without a new baseline every time would make this a better fit for our needs.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top