[英]How to rebase in ClearCase on latest baselines?
From the cleartool rebase
command I am able to rebase my stream on recommended baselines with the command:通过cleartool rebase
命令,我可以使用以下命令将 stream 重新设置在推荐的基线上:
cleartool rebase -rec -view ViewTag -stream stream:Stream@/PVOB
All the components in the stream are rebased to recommended baselines after running that command.运行该命令后,stream 中的所有组件都将重新设置为推荐的基准。
Is there any option for the cleartool rebase
command to rebase on the latest baselines instead of recommended baselines? cleartool rebase
命令是否有任何选项可以根据最新的基线而不是推荐的基线重新设置? I tried cleartool rebase help, but I didn't find any option for this.我尝试了 cleartool rebase 帮助,但我没有找到任何选项。
You would need to use the option您需要使用该选项
-bas/eline baseline-selector[,...]
And list the latest baselines yourself (as opposed to the -recommended
option, which will take automatically the recommended baselines from the parent stream)并自己列出最新的基线(与-recommended
选项相反,它会自动从父流中获取推荐的基线)
See " Rules for rebasing a stream " to select the latest baselines: said baselines must have been produced in the parent stream of the one you are rebasing.请参阅“ 重新设置 stream 的规则”至 select 最新基线:所述基线必须已在您正在重新设置的父 stream 中生成。
See " List the latest baseline of a component in a UCM stream one by one " to get those latest baselines.请参阅“一一列出 UCM stream 中组件的最新基线”以获取这些最新基线。
The OP bhardwajme confirms in the comments : OP bhardwajme在评论中确认:
it worked: I had written a script to do all the stuff:它起作用了:我写了一个脚本来做所有的事情:
- first I got the latest baselines from
cleartool lsbl -s -comp C -stream S | tail -1
首先,我从cleartool lsbl -s -comp C -stream S | tail -1
获得了最新的基线。cleartool lsbl -s -comp C -stream S | tail -1
for all the components and moved them into a text file thencleartool lsbl -s -comp C -stream S | tail -1
用于所有组件,然后将它们移动到文本文件中- passed the baseline names to command
cleartool rebase -baseline baseline-selector
command.将基线名称传递给命令cleartool rebase -baseline baseline-selector
命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.