Cleartool-如何调整基础并只在流中保留一个组件 [英] Cleartool - How to rebase and leave just one component in the stream

查看:53
本文介绍了Cleartool-如何调整基础并只在流中保留一个组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道cleartool中是否有一个命令可以重新设置特定组件的基础并取出其他不必要的组件?例如,在ClearCase项目中,您可以选择按组件重新设置基线基准,也可以通过单击删除"按钮来删除不需要的组件.因此,一旦将其删除,则在完成重新设置基准后,该组件的代码将不再存在.

I would like to know if there is a command in cleartool to rebase a specific component and take out the other component that is not necessary? For instance, at ClearCase project, you have the option to rebase the baseline by component, and you also can remove the component you don't need by click on Remove button. Thus, once you remove it, the code for this component won't be there after you complete the rebase.

我用来重新设置基准的命令是:

The command that I use to rebase a baseline is:

rebase -bas'基线代码'
变基-完成

rebase -bas 'baseline code'
rebase -complete

但是,上面的命令仍然将其他组件保留在我的视图中.因此,根据我的屏幕截图,我想使用命令行重新设置ZC DUAT_ZC的基础,并删除ZC_DATA(就像我按下删除"按钮时所做的那样).有什么建议吗?

However, this command above leaves the other components in my view. So, based on my screenshot, I would like to rebase the ZC DUAT_ZC, and delete the ZC_DATA (as I do when I push the Remove button) using command line. Any suggestion?

推荐答案

首先在测试组件上对其进行测试.

Test it on a test component first.

如果UCM项目列出了您要删除的组件,则会显示警告项目项目名称将该组件列出为已修改的组件.
如果您确认删除(或使用 -forc e),则该组件将从项目的可修改组件列表中删除.

If a UCM project lists the component that you are attempting to delete, the warning Project project-name lists this component as a modified component is displayed.
If you confirm the deletion (or use -force), the component is removed from the project's list of modifiable components.

如果为 all 流删除了该组件,则另一种方法是将基础基准锁定为过时:这将使该基准不可见.

If the component is removed for all stream, then another approach would be to lock the foundation baseline as obsolete: that would make said baseline invisible.

注意:该组件必须是只读的,使用

Note: the component needs to be read-only, using cleartool chstream:

chstream -dmodcomp component_selector


OP MBurgos 所述/cleartool如何重新设置并保留流中的一个组件?noredirect = 1#comment90095044_51548082>评论,以创建子流直接带有正确的组件,请使用 cleartool mkstream :


As noted by the OP MBurgos in the comments, to create a new child stream directly with the right components, use cleartool mkstream:

cleartool mkstream -in <projec-selector> -baseline 'list of baseline' <child stream name>

这篇关于Cleartool-如何调整基础并只在流中保留一个组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆