clearcase

CMD batch file calling cleartool command freezes script when writing to file

半世苍凉 提交于 2019-12-08 04:00:37
问题 In a CMD batch trigger script I use a cleartool command to write activity information to a file: cleartool lsactivity -long %CLEARCASE_ACTIVITY%>>C:\folder\activityinfo.txt This works almost every time but occasionally for a reason unknown to me the cleartool command does not write the information correctly to file resulting in a 0KB output file that I cannot delete. Whatsmore it blocks the trigger from running properly in successive attempts. I wrote some code that checks to see whether the

clearcase symbolic link file not visible from a snapshot view

本小妞迷上赌 提交于 2019-12-08 03:33:11
问题 I have created a symbolic link (see below) to a version controlled file from a different vob ( VOB_II ) and the file is visible from a dynamic view whereas it’s not visible from the UCM snapshot view. A.txt --> ..\..\..\VOB_II\SampleDir\A.txt I have the following selection and load rules. element \VOB_II\SampleDir\A.txt ...\branch1\LATEST load \VOB_II\ SampleDir Any ideas why the file is not getting loaded in the snapshot view? I could not figure out what’s wrong. Any help or inputs are much

Where do new elements appear when mkelem is used?

末鹿安然 提交于 2019-12-08 03:31:25
问题 My config spec is set up as: element * CHECKEDOUT element * .../BRANCH/LATEST element * baseline -mkbranch(BRANCH) element * /main/LATEST When I make a new element I know it goes along with the rule /main/LATEST. When I do a cleartool ls I can find the new element, but how can I find the new element with a cleartool find command. Also this is assuming the new element has been checked in and all existing elements that where checked out under the branch have been checked in. The new element

Why does Clearcase diffbl include activities from my development stream when I diff integration stream baselines?

情到浓时终转凉″ 提交于 2019-12-08 03:30:27
问题 We are using Clearcase UCM and have one Integration stream and each developer has a development stream. When I do a baseline compare, activities from the development stream are sometimes included. Is there any way to get a simple list of activities in the integration stream since a particular baseline? 回答1: Note: in the integration stream, you will mostly get deliver activities, ie activities recording the merges done during delivers from the development stream. So if you want activities from

Why do backticks, when used for saving command output, cause an EOF error?

守給你的承諾、 提交于 2019-12-08 03:28:22
问题 I am looping through a list of clearcase files to see if the text "Merge <-" is not part of the output of ct describe. I have tried running a while loop on this list of clearcase files then appending it to another file if it meets my desired condition. Below is the exact logic I used: 16 FILTER_LIST=cut -f1 -d'@' branchmerge_versions.txt 17 touch temp.txt 18 echo $FILTER_LIST > temp.txt 19 20 while read t; do 21 isMerged=`cleartool describe t | grep -e "Merge <-"` 22 if [[ "x$isMerged" == "x"

How to create OLE Automation to be used with ClearExplorer

↘锁芯ラ 提交于 2019-12-08 03:28:09
问题 In the following http://www-01.ibm.com/support/docview.wss?uid=swg21158221 there is a mention of COMMAND TYPE as OLE Automation . Can you please help me with an example of OLE Automation for ClearExplorer tool? 回答1: OLE automation is generally done with the CAL (ClearCase Automation Library) , which provides a set of COM interfaces to ClearCase on the Windows 32-bit platforms. These interfaces are intended both as an integration platform and also as an API that can be used to extend or

How to delete a clearcase branch with a single command?

不羁的心 提交于 2019-12-08 03:26:26
I've accidentally created a branch with the wrong config spec and I've made a merge in there that wasn't meant to be done. Is there a way to remove this branch like it never existed, with one and only command? There are no checked-out files in the branch. I could go through all files and do it manually since there are only 3 files that were merged. But what if there were 3000 instead of 3? You can try and delete the byrtpe (branch type) with cleartool rmtype brtype:xxx . That is possible only if you are talking about a brand new branch, which was used only in this instance (that is, where you

How merge sub branch to main branch using clearcase command line under linux?

陌路散爱 提交于 2019-12-08 03:18:26
问题 I want to merge all the files labelled with XXX in sub branch AAA to main branch. The main branch do not update since AAA branched out, so the merge task is just replace all changed files with sub branch files. How can I do this using ClearCase command line ( cleartool ) under Linux? 回答1: You can use the command cleartool findmerge for that. The key is to use a view which select those files: element * MYLABEL element * /main/LATEST And use -ftag yourLabelView You can also directly use -fver

Simple deployment from ClearCase on Unix

微笑、不失礼 提交于 2019-12-08 03:17:29
问题 I have recently joined a team that has several applications that perform workload automation. They use ClearCase for version control but the development and test environments are (I surmise due to a lack of ClearCase expertise within the team) not checked out/deployed out of ClearCase but simply FTP-ed to respective Unix servers from Window. I said "simple deployment" because all the code is interpreted (Perl and shell) so no need to compile. Needless to say, many things are wrong with this

ClearCase [cleartool] commands error messages and error handling

末鹿安然 提交于 2019-12-08 03:16:24
I'm writing a program that automates some frequently used actions in my development area, this tasks involve running cleartool commands from a shell script (by java runtime). is there any documentation to cleartool/clearcase commands error messages/exit values and causes? i would like to parse the process output and handle issues/return a response based on that. is there an easier way to combine java and clearcase than executing shell scripts from the java runtime ? i could not find any clearcase packages for java that actually does the work... P.S im only running basic commands... checkout