1

我在使用 ClearCase 时遇到问题,我试图通过使用从目录中检出一个文件ct co -nc file name,但出现以下错误:

cleartool: Error: branch type "test1" not found in VOB "/dir/file" and no global type definition can be found.
cleartool: Error: Unable to create branch requested by -mkbranch option in config spec.
cleartool: Error: Unable to check out "file".

但是当我试图从 dir 签出另一个文件时,我可以做到。我只是在检查该文件时遇到问题。

谁能帮助我如何克服这个错误?

4

2 回答 2

0

这看起来像一个配置规范test1,在选择规则 ( element ... -mkbranch test1) 中使用了一个名为 " " 的分支,该选择规则不是首先创建的。

所以首先,检查配置规范的样子:

cleartool catcs

另请参阅该文件的父文件夹中的文件的配置规范:

cd /path/to/§parent/folder
cleartool ls 

看看使用cleartool mkbrtype是否有帮助:

cleartool mkbrtype -c "test1 branch" test1@/vobs/avob

(根据您之前的配置规范,我使用 Unix 语法)

于 2017-11-01T15:19:25.807 回答
0

看起来vob中不存在“ test1 ”分支类型。

使用ct mkbrtype创建一个分支。从文件所在的文件夹运行以下命令

ct mkbrtype -nc test1

由于错误仅针对一个文件发生,因此配置规范应仅针对该文件具有选择规则。可以使用 ct catcs

注意:- 在配置规范中添加分支规则时,始终检查该名称的 brtype 是否存在。

于 2017-11-15T14:36:53.063 回答