创建带有大写字母的标签 [英] Create label with clearcase

查看:120
本文介绍了创建带有大写字母的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过明确指定 VOB 名称从任何地方创建标签.不幸的是,无论我如何指定我的 VOB ,我总是会收到此错误:

I would like to create a label from anywhere by explicitly specifying the VOB name. Unfortunately no matter how I specify my VOB I always get this error:

$ cleartool mklbtype -global -nc MyVOBName:MY_LABEL_NAME
cleartool: Error: Invalid name: "MyVOBName:MY_LABEL_NAME".
cleartool: Error: Unable to create label type "MyVOBName:MY_LABEL_NAME".

甚至:

$ cleartool mklbtype -global -nc -vob MyVOBName MY_LABEL_NAME
cleartool: Error: Unrecognized option "-vob"
Usage: mklbtype [-replace] [-global [-acquire] | -ordinary] [-pbranch] [-shared]
                [-c comment | -cfile pname | -cq | -cqe | -nc]
                label-type-selector ...

唯一可行的方法是直接使用cd L:\MyVOBnane进入正确的 VOB .

The only thing that works is going directly in the correct VOB with cd L:\MyVOBnane.

有任何线索吗?

推荐答案

应该

cd /path/to/your/vob
cleartool mklbtype -global -nc MY_LABEL_NAME

I don't see a -vob option in cleartool mklbtype (and anyway it should be with -vob \MyVOBName, not -vob MyVOBName: you must use the vob tag \MyVobName).

您可以使用:

cleartool mklbtype -global -nc lbtype:MyLabel@\MyVobName

最后一个可以在任何地方执行.

That last one can be executed from anywhere.

全局创建lbtype有助于在Vob之间共享它:请参阅"在2个VoB Clearcase之间共享分支和标签"

Creating the lbtype globally is useful to share it amongst Vob: see "Sharing branches and labels between 2 VoB Clearcase".

请注意,它会创建标签 type ,但不会标签.
为此,您需要进入视图并键入(使用

Note that it creates a label type, it doesn't label.
For that, you need to go into a view and type (using cleartool mklabel):

cleartool mklabel -rec -nc MyLabel .

在"在标签发行版中,clearcase和vss有什么区别?.

这篇关于创建带有大写字母的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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