nowox
nowox

Reputation: 29086

Create label with clearcase

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".

Or even:

$ 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 ...

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

Any clues?

Upvotes: 3

Views: 8464

Answers (1)

VonC
VonC

Reputation: 1323583

It should

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).

You can use:

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

That last one can be executed from anywhere.

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


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 .

See another example at "What is the difference between clearcase and vss in label a release?".

Upvotes: 2

Related Questions