Clearcase 的 clearfsimport
命令在尝试将项目导入 clearcase VOB 时始终使用 RESERVED check out 。
你能告诉我如何使用 UNRESERVED 选项而不是默认的 RESERVED 选项执行基于 clearfsimport
的项目文件导入吗?
最佳答案
一种方法是将您的 ClearCase 首选项默认设置为未保留。
参见“To set the default for reserved or unreserved checkouts (Windows)e”
Tools > Options
and, in the Options window, clickClearCase
Options.Click
Start > Programs > IBM Rational > IBM Rational ClearCase > User Preferences
.In the ClearCase User Options window, in the Check Out field, to make unreserved checkouts the default setting, clear Reserved.
但是如果你不想改变默认值(或者你在 Linux 上),你也可以 define a post-op checkout trigger .
cleartool mktrtype -element -all -post checkout -exec '/opt/rational/clearcase/bin/cleartool unreserve -nc '$CLEARCASE_PN' TRIGGERNAME
您只需在 clearfsimport
期间设置该触发器。
关于ClearCase clearfsimport 使用未保留而不是保留,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29496233/