问题描述
在重新定标流时,我遇到了这个问题:cleartool:错误:由于流已进行更改,因此无法切换到基线根据当前基准.
I have this issue while rebasing the stream:cleartool: Error: Can't switch to baseline because the stream has made changesbased on the current baseline.
giraffe_pvob是上的不可修改的组件tiger_011项目,此组件未做任何更改在河边.
giraffe_pvob is a non modifiable component ontiger_011 project and there were no changes done on this componentby the stream.
我想安装前置触发器,以防止此流上出现任何新的基准.那我该怎么办呢?这样是否可以避免上述任何变基问题?
I would like to install the preop trigger to prevent any new baseline on this stream. so how should I proceed? Will this prevent any rebasing issue like above?
谢谢!!
推荐答案
您不能阻止创建基线,但是可以防止导致在不可修改组件上出现所述基线的情况.
You cannot prevent the creation of the baseline, but you can prevent the situation which leads to said baseline on a non-modifiable component.
这称为寄生虫基线,是 UCM缺陷之一.
它是由依赖性引起的,如" ClearCase UCM-使用组件的最佳实践中所述.
It is caused by a dependency, as explained in "ClearCase UCM - best practices using components".
A1
B1
B2
在 A
上放置基线会在 B
上创建寄生基线,即使 B
是不可修改的组件...
(有关更多详细信息,请参见此线程)
Putting a baseline on A
will create a parasite baseline on B
, even if B
is a non-modifiable component...
(more details in this thread)
我通常只做一个准备工作(在变基上),以确保流的基础组件(如 B
)都不是另一个(可修改的)组件(如 A
取决于 B
)
The only preop I usually put is one (on rebase) making sure none of the foundation components (like B
) of a stream are part of the dependencies of another (modifiable) component (like A
depending on B
)
这篇关于如何创建前置操作触发器以防止在清除案例流中出现新的基准?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!