cleartool

Perl system() call failed with return code 65280

旧巷老猫 提交于 2019-11-28 09:03:48
问题 I the code below, I can run $retCode = ClearCase($cmd); with no error, but return 65280 when run this: $retCode = ClearCase($logcmd); I tried on XP and Windows 2003 server, same result, all with ActiveState Perl v5.14.2. This code was working 2 years ago somewhere else. Thanks Jirong $g_HPPC_DEV_DRIVE = "M"; $g_HPPC_DEV_VIEW = "bldforge_AOMS_DEV"; $g_logfile = "logfile.txt"; $cmd = "startview $g_HPPC_DEV_VIEW"; $logcmd = $cmd . " >> $g_logfile 2>>&1"; $targetDir = $g_HPPC_DEV_DRIVE . ":\\" .

How to find all checkedout files with ClearCase cleartool?

浪子不回头ぞ 提交于 2019-11-28 07:39:05
I'm trying to setup our ClearCase with Hudson for a continuous integration (and deployment later). I finally got a UCM view for the build, but unfortunatly our build process checks out files to store the build number. Now the build broke and the file is still checked out, preventing the next build . I already now about cleartool find . -type f , but I can't figure out how to find checked out files. I know the syntax of UNIX' find, so that isn't a problem. Can someone point me to a documentation of the query language or maybe give an example to find checked out or hijacked files? VonC You can

Finding which developer activities were delivered in a specific delivery

你说的曾经没有我的故事 提交于 2019-11-28 06:53:28
问题 In ClearCase, how do I find which developer activities were delivered in a specific delivery? Doing lscat -long On either activity doesn't reveal this information. 回答1: See lsact (cleartool lsactivity): List activities or baselines that contributed to the change set of an integration activity: lsact/ivity -contrib activity-selector [...] The activity selector must be: activity:anActivityName@\aPVob # Windows activity:anActivityName@/vobs/aPVob # Unix A deliver activity would be named "

While creting a view I got this error; cleartool: Error: Failed to record hostname in storage directory

眉间皱痕 提交于 2019-11-28 06:52:36
问题 I am creating a view and I got this error cleartool: Error: Failed to record hostname in storage directory . Check that root or the ClearCase administrators group has permission to write to this directory. I tried all the possible troubleshoot using online help and others, but no luck. Can anyone help? 回答1: You can check the technote "Registering a VOB or creating a new View or VOB reports error: Failed to record hostname" View Tool Error creating view - '<view-tag>' Fail to record hostname "

ClearCase: How to find files not labelled with “LB” on CURRENT Version selected by config spec

ぃ、小莉子 提交于 2019-11-28 05:23:46
问题 For example, the current config spec is "element * /main/LATEST". There is a file "A.txt", its current version is 3 and a label named "LB" was applied on its version 2 before. I want a command to query all files which do not have the label "LB" on its current version. Obviously, file "A.txt" should meet the query. How to write the clearcase command? 回答1: That command could help you: cleartool find . -type f -version "version(/main/LATEST) && !lbtype(LB)" -print That will print all the

How can I find all elements on a branch with version LATEST that has no label applied?

随声附和 提交于 2019-11-28 01:52:47
问题 As the title said: I would like to find all elements that are on a branch (e.g. DEV_BRANCH ) with LATEST version but that has not yet had any label applied to them. I know how to find elements that does not have a particular label applied (as in: ClearCase: How to find elements that do NOT have a particular label, ClearCase: How to find files which was not labeled as “Label_Name” on CURRENT Version filtered by config spec) But I don't know how to find elements that hasn't got any label

Config spec in ClearCase

时光总嘲笑我的痴心妄想 提交于 2019-11-28 00:30:17
I have tiny question about ClearCase. Help me please! When does config spec start to work? When I click CHECK OUT or CHECK IN ? I have test.c and I have config spec element * CHECKEDOUT element * .../branch_1/LATEST element * /main/LATEST -mkbranch branch_1 then I modify test.c , then I change config spec: element * CHECKEDOUT element * .../branch_2/LATEST element * /main/LATEST -mkbranch branch_2 Then I Check in test.c and I have: created /main/branch_1/1 . BUT WHY??? VonC The config spec will apply the rules on each update and on checkout, and on checkin (but not as you think it would). On

How to run multiple Unix commands in one shot

允我心安 提交于 2019-11-27 15:51:55
I am trying to execute multiple commands in one shot but to my surprise only the first command is getting executed and the rest are skipped. And the command is cleartool setview view1234 ; cleartool setactivity activity456 ; cd /vobs/app/src/epw/WEB-INF/scripts ; pwd And the output of the above command is You can now run 'clearquest' to start Rational ClearQuest. But instead I'm expecting to see the following 3 lines of output: You can now run 'clearquest' to start Rational ClearQuest. Set activity "activity456" in view "view1234". /vobs/app/src/epw/WEB-INF/scripts My search efforts yielded

List the latest baseline of a component in a UCM stream one by one

偶尔善良 提交于 2019-11-27 09:22:23
I need to list the latest baseline for each component in a clearcase UCM stream one by one. I am aware of the "%[latest_bls]p" option used with -fmt . The problem is that it lists all the latest baselines for all components together. What I need is, given component name C and stream name S, display the latest baseline for component C in the stream S. Thanks for your help. If you consider the fmt_ccase options, %[latest_bls]CXp will always list the latest baseline for all components of a given Stream. So it is best to parse the result, and for each baseline name, to display its component name:

How to obtain UCM stream and baseline with cleartool?

青春壹個敷衍的年華 提交于 2019-11-27 09:20:47
For build logging, I need to obtain the current stream/baseline with cleartool , but I am stuck in determining which command will give me this information. How can I make cleartool tell me which stream/baseline I am currently looking at? It is no problem if the output needs preprocessing or filtering. If you are in a view, you can: get the current stream cleartool lsstream -cview get all baselines for a component in that stream cleartool lsbl -comp myComp@\myPVob -stream myStream@\myPVob get all foundation baselines for that stream cleartool descr -fmt "%[found_bls]CXp" stream:myStream@\myPVob