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