问题描述
对于构建日志记录,我可以通过cleartool获取当前流和最后一个基线(如 )。
但这是只有当我还可以告诉您自上一个基准以来没有进行过任何更改时,这才是唯一明确的。
For build logging, I am able to obtain the current stream and last baseline by means of cleartool (as detailed in "How to obtain UCM
stream and baseline with cleartool").
But this is only unambiguous if I can also tell that no changes were made since the last baseline.
所以:我如何使cleartool告诉我自上一个基准以来是否进行了更改
So: how can I make cleartool tell me if changes have been applied since the last baseline?
奖金问题:ClearCase术语是否为此命名(基线是否未修改)?
Bonus question: does ClearCase terminology have a name for this (whether or not the baseline is "untouched")?
推荐答案
要查看自最新基线以来流是否有任何修改(意味着该流至少具有一个可修改的组件),您可以:
To see if a stream has any modification since the latest baseline (meaning that stream has at least one modifiable component), you can:
- 获取当前视图的最新基准日期
cleartool lsbl -fmt "%d\n" -cview
(最后一个是最新的)
-查找自该日期以来的任何新版本
(the last one is the most recent)- do a find for any new version since that date
cleartool lsbl -fmt "%d\n" -cview
2008-05-29T16:40:28+02:00
[...]
2009-09-27T09:51:28+02:00
cleartool find . -ver "brtype(MyProject_Dev) && created_since(2009-09-27T
09:51:28+02:00)" -print
.@@\main\MyProject_Int\MyProject_Dev\3
.\.checkstyle@@\main\MyProject_Dev\CHECKEDOUT
.\.classpath@@\main\MyProject_Int\MyProject_Dev\1
.\.classpath@@\main\MyProject_Int\MyProject_Dev\CHECKEDOUT
[...]
有对于不变的基线,没有特殊的术语,因为根据定义,基线是不变的(您绝不能修改或更改基线的内容)。
There is no special terminology for an untouched baseline, because a baseline is by definition "untouched" (you can never modified or change the content of a baseline).
流可以具有仅当有非空活动表明已创建至少一个版本时,才进行修改。
A stream can have modifications only if there are non-empty activities which shows that at least one version has been created.
这篇关于如何使cleartool告知自上次基准以来是否修改了源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!