clearcase的两个错误(no_rmelem_cmd & EVIL_TWIN)

1. no_rmelem_cmd

jialiang:[] ct rmelem test2

CAUTION! This will destroy the element, all its branches and versions,
including all data, meta-data and history, and will remove the element
from all directory versions that now contain it.  Once you destroy the
element, there will be no way to restore it to its current state.
If you want to preserve the element, but remove references to it from
future directory versions, use the "rmname" command.

Element "test2" has 2 branches, 3 versions, and is entered
in 4 directory versions.
Destroy element?  [no] yes
 rmelem not allowed ; disable no_ rmelem_cmd preop trigger
cleartool: Warning: Trigger " no_rmelem_cmd" has refused to let rmelem proceed.
cleartool: Error: Unable to remove element "test2".

(这里出现错误的原因是因为,管理员不让用户使用rmelem命令)


2.EVIL_TWIN

什么是evil twin,就是在当前version下没有要追加的目录test1,但是在以前的版本里面有过test1,但是后来被删除了。

所以clearcase的管理员在用户check in element是,hook了一个trigger,来检查用户要提交的element时候有evil twin,这样就会出现

下面的错误。

jialiang:[] ct mkelem -mkpath  test1
Creation comments for "test1":
.

Search for Evil-Twin, please be patient...

Error: duplicate name 'test1' found in directory version somedir@@/main/some_branch/18
cleartool: Warning: Trigger "AVOID_EVIL_TWIN" has refused to let lnname proceed.
cleartool: Error: Unable to create directory element "test1".
cleartool: Error: Unable to create element "test1".


解决方法:不能check in当前的test1,需要将它删除,然后从18版将test1 merge过来,然后再test1下进行修改。

使用下面的命令:

ct merge -q -narrows -g -to . .@@/main/some_branch/18

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值