cleartool

Cleartool findmerge select changes from file 2 by default in all cases?

半腔热情 提交于 2019-12-23 00:42:26
问题 So I have a branch is that is dreadfully out of date with the rest of the world. I'd love to simply create a new branch and merge over... but that task would be even larger... anyways what I'm trying to figure out is if I can set findmerge to always accept file 2. To speed my merge up, I initially did: cleartool findmerge <path to out of date code> -ftag <my merge from view> -merge -abort to cover all the simple merges, but not I want to grab the 'conflicting' changes, but I really just want

How to execute cleartool command within perl

风流意气都作罢 提交于 2019-12-22 18:36:43
问题 Sorry if its to naive. I am wanting to write a simple PERL script that will accept two arguments(Here Commit Labels) which are taken as inputs to cleartool command and provides me with a suitable output. My Code: #!/usr/bin/perl $file1 = system('cleartool find . -version "lbtype($ARGV[0])" -print > filename1'); $file2 = system('cleartool find . -version "lbtype($ARGV[1])" -print > filename2'); $file3 = system('diff filename1 filename2 > changeset'); print $ARGV[0]; print $ARGV[1]; print

Get specific version of unloaded file with cleartool

青春壹個敷衍的年華 提交于 2019-12-22 14:16:19
问题 So I'm writing a script at work where I have to go through all the projects in a ClearCase vob, look for a file and parse some info from said file. Naturally, I wouldn't want to load every single project so I'm using cleartool to retrieve the unloaded files. First, I'm using the find command to locate the files. This was my first attempt: root>cleartool find C:/viewpath -name file.txt -version "lbtype(Version-label)" -print -nr Viewpath is the path to the project where I'm currently looking

Reference for properties that can be passed to -fmt?

耗尽温柔 提交于 2019-12-22 13:58:39
问题 The fmt_ccase documentation for cleartool gives this as a formatting option: %[p]p Property value: Displays the value of the property specified in square brackets. If multiple values are returned, they are separated by spaces. However, the page doesn't list the possible values for [p] as far as I can tell, and I can't find any other reference to this anywhere in the ClearCase documentation. I would like to use this to format output from lstype for scripting purposes, to print out properties

How can I quickly checkin a large number of files in clearcase

て烟熏妆下的殇ゞ 提交于 2019-12-22 12:24:09
问题 I have a large number of files that I am trying to check in. This process needs to be done several times and is time and resource consuming. I am using the follow command to do this: cleartool lsco -cvi -all -s | awk '{print "cleartool ci -c \"<Name of checkin>\" " <path to vob> | sh This command does work, but it takes a very long time to run, as each file is checked in individually. Is it possible to checkin all files at once, or perhaps a faster method of checkin in the files individually.

How can I quickly checkin a large number of files in clearcase

爱⌒轻易说出口 提交于 2019-12-22 12:24:02
问题 I have a large number of files that I am trying to check in. This process needs to be done several times and is time and resource consuming. I am using the follow command to do this: cleartool lsco -cvi -all -s | awk '{print "cleartool ci -c \"<Name of checkin>\" " <path to vob> | sh This command does work, but it takes a very long time to run, as each file is checked in individually. Is it possible to checkin all files at once, or perhaps a faster method of checkin in the files individually.

Clearcase Delete Directory

半世苍凉 提交于 2019-12-21 02:46:11
问题 I have a directory structure like so: root_dir dir1 dir2 file1.txt file2.txt sub_dir file3.txt file4.txt What is the best way to delete dir2 and all it's sub-elements using rmname ? Can I simply do 'cleartool rmname dir2' and have it recursively delete all it's contents? 回答1: You only need to: cleartool checkout -nc root_dir cleartool rmname dir2 cleartool checkin root_dir That remove the reference to dir2 in the new version of root_dir , making dir2 and all its content invisible (not

Clearcase error adding file

旧巷老猫 提交于 2019-12-19 11:21:04
问题 I cannot add a new file to the VOB. I tried both UI context menu on windows as well as cleartool command line utility. cleartool> checkout . Checkout comments for ".": Created branch "BRANCH_NAME" from "." version "\main\BASE_BRANCH_NAME\1". Checked out "." from version "\main\BASE_BRANCH_NAME\BRANCH_NAME\0". cleartool> mkelem -ci -nc NewFile.h Created element "NewFile.h" (type "text_file"). cleartool: Error: Unable to check out "NewFile.h". cleartool> uncheckout . describe -l . shows me that

cleartool list activities since last 7 days

拥有回忆 提交于 2019-12-18 08:57:49
问题 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? 回答1: 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

cleartool question

拥有回忆 提交于 2019-12-17 21:34:35
问题 Lets say I have a directory at \testfolder, and the latest is currently at /main/10. I know that the operation resulting in testfolder@@/main/6 is to remove a file named test.txt. What's a sequence of cleartool operations that can be done in a script that will take "testfolder@@/main/6" and "test.txt" as input, and will cat out the contents of test.txt as of that time? One way I can think of is to get the time of /main/6 operation, create a view with config spec -time set to that time, and