ClearCase:如果有结帐,请停止建立基线 [英] ClearCase: Stop making baseline if there are checkouts

查看:91
本文介绍了ClearCase:如果有结帐,请停止建立基线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用cleartool在流中建立基线,

I'm using cleartool to make baselines in my stream, using

cleartool mkbl -full <baseline-name>

如果我认为文件已签出(对我而言始终是疏忽)警告

If I have files checked out in my view (in my case, always an oversight), I get the warning

cleartool: Warning: There are checkouts in view "<JXG-view-name>".

但这只是警告, cleartool 继续建立基线。

But as this is just a warning, cleartool continues with making the baseline.

在收到此警告后,我需要立即停止

What I need to do is stop immediately when given this warning.

收到此警告后,如何自动中止命令?我以为这是 mkbl cleartool 命令行选项,但我在文档中找不到它

How can I abort the command automatically when I get this warning? I thought it would be a cleartool command-line option for mkbl, but I couldn't find it in the documentation.

推荐答案

不,没有本地方法可以在 cleartool mkbl 本身。

它将简单标记任何签入元素,而保持当前签出版本不变。

No, there is no native way to look for checked out files on a cleartool mkbl itself.
It will simply labelled any checked-in elements, leaving the current checked-out version untouched.

但是,您可以尝试在 mkbl 上编写操作前触发器(有点像此线程)以执行 cleartool lsco -cview ,看看是否有任何文件签出。

However, you could try and write a pre-op trigger on mkbl (a bit as in this thread) in order to perform an cleartool lsco -cview and see if there are any files checked out.

cleartool mktrtype -element -all -preop mkbl -nuser ccadmin -exec "..."

您可以 lsco 限制为分支(以Stream命名的分支),以便避免任何性能问题

这篇关于ClearCase:如果有结帐,请停止建立基线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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