Error Cannot Modify An Lbtype That Is A Version Map
version map labe l without warning Subscribe You can track all active APARs for this component. APAR status Closed as program error. Error description When a user attempts to move a label, for example in Version Tre e Browser, and that label is a baseline label (version map) then it fails with the error ---------------------------------------------- Failed to apply label to element. Cannot modify an lbtype that is a version map. Trouble applying label to '...' Unable to create label 'XXXXX' on '...' ---------------------------------------------- However, if the user happens to be a ClearCase Administrator the n the operation succeeds without warning. This causes baseline integrity issues. By contrast, if the ClearCase Administrator moves the label usin g a a 'cleartool mklabel -replace' command they get a warning as follows: ================================================================ =============== cleartool? mklabel -replace Milestone_5 'Baseline Suffixes.txt@@ \main\TEST_Integration\3' cleartool: Warning: Modifying an lbtype that is a version map sh ould be done only for repair purposes under the supervision of C ustomer Support. Moved label 'Milestone_5' on 'Baseline Suffixes.txt' from versio n '\main\TEST_Integration\2' to '\main\TEST_Integration\3'. ================================================================ ================= Local fix Problem summary The use of Move label in version tree was confusing to the user as no warning message was displayed Problem conclusion A fix is available in ClearCase versions 7.0.0.8 and 7.0.1.7 Temporary fix Comments APAR Information APAR numberPK89347 Reported component nameCLEARCASE WIN Reported component ID5724G2900 Reported release701 StatusCLOSED PER PENoPE HIPERNoHIPER Special AttentionNoSpecatt Submitted date2009-06-19 Closed date2009-10-16 Last modified date2009-10-16 APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Fix information Fixed component nameCLEARCASE WIN Fixed component ID5724G2900 Applicable component levels R701 PSNUP Document information More support for: Rational ClearCase Software version: 7.0.1 Reference #: PK89347 Modified date: 2009-10-16 Site availability Site assistance Contact and feedback Need support? Submit feedback to IBM Support 1-800-IBM-7378 (
of type 'Label_name' already on element if branch is locked with -nuser Fixes are available Rational ClearCase Fix Pack 09 (7.1.2.9) for 7.1.2 Rational ClearCase Fix Pack 05 (8.0.0.5) for 8.0 Rational ClearCase Fix Pack 14 (7.1.2.14) for 7.1.2 Rational ClearCase Fix Pack 11 (8.0.0.11) for 8.0 Rational ClearCase Fix Pack 12 (8.0.0.12) for 8.0 Rational ClearCase Fix Pack 15 (7.1.2.15) for 7.1.2 Rational ClearCase Fix Pack 13 (8.0.0.13) for 8.0 Rational ClearCase Fix Pack 16 (7.1.2.16) for 7.1.2 Rational ClearCase Fix Pack http://www-01.ibm.com/support/docview.wss?uid=swg1PK89347 17 (7.1.2.17) for 7.1.2 Rational ClearCase Fix Pack 14 (8.0.0.14) for 8.0 Rational ClearCase Fix Pack 18 (7.1.2.18) for 7.1.2 Rational ClearCase Fix Pack 15 (8.0.0.15) for 8.0 Rational ClearCase Fix Pack 19 (7.1.2.19) for 7.1.2 Rational ClearCase Fix Pack 16 (8.0.0.16) for 8.0 Rational ClearCase Fix Pack 17 (8.0.0.17) for 8.0 Rational ClearCase Fix Pack 18 (8.0.0.18) for 8.0 Rational http://www.ibm.com/support/docview.wss?uid=swg1PM68896 ClearCase Fix Pack 19 (8.0.0.19) for 8.0 Subscribe You can track all active APARs for this component. APAR status Closed as program error. Error description When you perform a cleartool mklabel operation, you may receive the following error ?cleartool: Error: Version label of type 'Label_name' already on element, under the following conditions 1) There is a locked branch with an ?nuser list and the user is not on the list 2) The files on locked branch are visible in your config spec 3) The parent directory and/or vob root is on a branch that is unlocked. For example, the root of the vob and the parent folder are on the main branch. There are files in the parent folder that are on diffeent branches: Y:\test_label?ct ls Folder1@@\main\1 Rule: \main\LATEST lost+found@@\main\0 Rule: \main\LATEST Y:\test_label\Folder1?ct ls t1.txt@@\main\br1\1 Rule: ...\br1\LATEST t2.txt@@\main\br2\1 Rule: ...\br2\LATEST t3.txt@@\main\br3\1 Rule: ...\br3\LATEST The branch ?br1? is locked with the ?nuser list. The config spec makes all files visible: element * CHECKEDOUT element * .../br3/LATEST element * .../br2/LATEST element * .../br1/LATEST element * /main/LATEST If you are a user who
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow http://stackoverflow.com/questions/12218068/how-to-remove-label-of-a-directory-and-all-its-contents-in-clear-case the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to remove label of a directory and all its contents in clear case? up vote 3 down error cannot vote favorite 1 I have applied a label to directory in clear case recursively. How can I remove all those labels? clearcase configuration-management share|improve this question asked Aug 31 '12 at 15:07 ajay bidari 2622417 add a comment| 1 Answer 1 active oldest votes up vote 8 down vote accepted The simplest approach would be in command line, using cleartool rmlabel cleartool rmlabel -rec YOUR_LABEL yourDirectory Note: this is for ClearCase V7.1+ error cannot modify only, not CC7.0.x or CCV6.x, and not for CCRC (ClearCase Remote Client) With older ClearCase versions, you had to do (see technote swg21126736): # Unix syntax cleartool find yourDirectory -version "lbtype(YOUR_LABEL)" -exec 'cleartool rmlabel YOUR_LABEL"$CLEARCASE_XPN"' # Windows syntax cleartool find yourDirectory -version "lbtype(YOUR_LABEL)" -exec "cleartool rmlabel YOUR_LABEL\"%CLEARCASE_XPN%\"" Note: you could remove a label using a GUI, but as described in technote swg21146450, this is a file-by-file operation only! (Not very practical if you have hundreds of elements -- files and directories -- to process...) share|improve this answer edited Sep 4 '12 at 19:51 David W 31 answered Aug 31 '12 at 15:35 VonC 625k19017981883 I am using clearcase 7.1.2.3.. The first answer would help me a lot.. Thank you..:) –ajay bidari Sep 3 '12 at 4:06 cleartool rmlabel -rec YOUR_LABEL yourDirectory removes label from current versions of elements. Is it possible to remove a label from all versions of elements (not only currently visible)? –sandrstar Feb 28 '15 at 8:09 1 @sandrstar I suspect for that you could go as far as deleting the lbtype. –VonC Feb 28 '15 at 9:33 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Pa