Create label with clearcase

前端 未结 1 1537
-上瘾入骨i
-上瘾入骨i 2021-01-14 15:57

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

相关标签:
1条回答
  • 2021-01-14 16:13

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

    0 讨论(0)
提交回复
热议问题