cleartool

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

大城市里の小女人 提交于 2019-11-29 18:54:36
问题 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? 回答1: cleartool mklabel -r(ecurse) LABEL_NAME <directory name>

cleartool list activities since last 7 days

社会主义新天地 提交于 2019-11-29 15:35:59
We use ClearCase UCM which has multiple Vobs (10). How to find the activities for past one week? Or list activities between two date ranges? It is a bit trickey, because all cleartool lsactivity commands are limited to one pvob ("project vob" or "special vob with UCM metadata in it"): cleartool lsact -invob \my\pvob -stream ... And an activity can be reused (meaning an old activity can have in its changeset very recent versions) If you have two baselines, you can easily diff them (by activity): See .. diffbl **. ct diffbl -act baseline:bas1@\myPVob baseline:bas2@\myPVob (that is necessary for

Perl system() call failed with return code 65280

五迷三道 提交于 2019-11-29 15:29:39
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 . ":\\" . $g_HPPC_DEV_VIEW; print "\$targetDir = $targetDir\n"; print "Starting view .......\n"; #$retCode =

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

烂漫一生 提交于 2019-11-29 12:35:43
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? VonC 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 " HOST " in storage directory "<path to view storage>. Check that root or the ClearCase administrators

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

点点圈 提交于 2019-11-29 11:39:22
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? That command could help you: cleartool find . -type f -version "version(/main/LATEST) && !lbtype(LB)" -print That will print all the versions (files here) at /main/LATEST that haven't yet the ' LB ' label. cleartool find /your/path -cview -version

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

可紊 提交于 2019-11-29 08:26:33
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 applied. Thanks in advance Mikael The simplest way would be to: find all element with a version in the

How to retrieve the list of files modified across base lines in clear case

六月ゝ 毕业季﹏ 提交于 2019-11-28 13:59:19
I need to retrieve a list of all the files that have been checked-in across baselines along with the owner name. I tried using the cleartool lsact command : However, this command fetches just for one task and is a bit cumbersome to use. Is there a command which will retrieve all the tasks if I specify two baselines? Thanks VonC A command like: cleartool diffbl -act bl1@\apvob bl2@\apvob will give you the list of activities which have new versions between baselines bl1 and bl2. However, to get the list of files (ie elements, as in files or directories, and not versions as in all the updated

Display Current Baseline with Cleartool

戏子无情 提交于 2019-11-28 12:43:05
How can I view the baseline on which the current view is based? I could find information only on how to view the currently recommended baseline for a stream cleartool desc -fmt %[rec_bls]CXp stream:myProject_Int@\myProject_pvob #This gives the currently recommended baseline for the stream Basically what I am looking to do is update the Build Notes. 1. Determine the baseline on which the last rebase was done 2. Determine the current recommended 3. Make a list of activities that have been delivered. I was able to find the information to do steps 2 and 3, but not for step 1. Maybe I'm not using

how to find checked out files in a clearcase (windows) snapshot view?

好久不见. 提交于 2019-11-28 10:58:07
问题 On Unix in a dynamic view, I run the following to find checked out files: cleartool lsco -s -cview -me -avobs In a windows snapshot view, this use of -avobs doesn't appear to work. On a vob by vob basis I can run: cleartool lsco -s -cview -me -all which returns the checked out names to me for that vob. Is there a way to tell what vobs have checkouts in a Windows snapshot view? (not sure if Windows vs. Unix is a factor here). I'd like to script the lsco, executing it in each of the vobs in

How to merge changes from a specific UCM activity from one ClearCase stream to another

扶醉桌前 提交于 2019-11-28 09:31:14
This should in theory be quite simple, i.e. merge the changes from a specific UCM activity from one stream to another. I had thought that I might just be able to use the Deliver command in the GUI and then select just the required activity to deliver, but it seems that the target stream is set to not allow deliveries from other streams. From searching the documentation it seems that I might instead be able to do this via the command line using the findmerge tool, but it's not at all clear from the rather sparse documentation how you do this. It seems like it might be a two stage process, i.e.