Cleartool: How to apply label to files which are in my current view only?

user1096966 picture user1096966 · Dec 14, 2011 · Viewed 25.9k times · Source

I could not find the proper command to apply a label to files which are in my current view. I have tried the following command:

cleartool mklabel -r TEST_LABEL /vob/test/a

However, the problem is that this command will apply the "Test_Label" label to every files in the "vob/test/a" directories regardless of whether the files are in my current view.
Is there any command to apply label only to the files listed in my current view?

Answer

shijq73 picture shijq73 · Apr 24, 2015
cleartool mklabel  -r(ecurse) LABEL_NAME <directory name>

This command will apply LABEL_NAME to all files in folder and below of your view, you can just go to that directory,then type following command to create and apply label

> cd /vob/test/a
> cleartool mklbtype –nc TEST_LABEL 
> cleartool mklabel  -r TEST_LABEL .