1

I am using CCRC. I have a text file with list of codes for which a label has to be applied.

Can some pleae suggest me a command to label all the files mentioned in the text file.

Here I want to apply label only on selected files with in a folder and and not all the files with in the folder.

Is there any command to sort this out where we we can pass the a text file with code list as input and apply label.

Sneftel
  • 40,271
  • 12
  • 71
  • 104

1 Answers1

0

You need to use rcleartool (the API for CCRC 7.x or ClearTeam 8.x.

See if mklabel is available through rcleartool: its man page does mention "ClearCase Remote Client rcleartool subcommand"

ClearCase Remote Client: attach label to specified versions

mklabel [ -rep/lace ] [ -r/ecurse ] [ -fol/low ]
[ -silent ] [ -ver/sion version-selector ]
[ -c/omment comment | -cq/uery | -nc/omment ]
label-type-selector pname ...

You could use mklabel to apply a label type (already existing in your vob) to a specific file.
You can then loop on all the files to apply said label.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • @user2707288 you are welcome, but I don't know for sure if `rcleartool mklabel` is available (especially since I don't know the exact version of the CCRC you are using). – VonC Aug 22 '13 at 13:15
  • I am using Version: 7.1.2 Build id: 7.1.2.07.00_2012B.D120613 – user2707288 Aug 23 '13 at 10:50
  • @user2707288 then I don't know if `mklabel` is available or not. I saw it in the 8.x documentation. – VonC Aug 23 '13 at 10:53
  • Hi VonC, can you please suggest where and how I can find a complete tutorial for basic clearcase and CCRC. – user2707288 Aug 23 '13 at 11:06
  • @user2707288 the best sources, for rcleartool, is the one I mention in http://stackoverflow.com/a/18269319/6309. For ClearCase and CCRC in general, http://www-01.ibm.com/support/docview.wss?uid=swg21209312, the 7.1.2 help page (http://pic.dhe.ibm.com/infocenter/cchelp/v7r1m2/index.jsp) remain the best sources – VonC Aug 23 '13 at 11:19