cleartool

Cleartool command to list all files part of a changeset

对着背影说爱祢 提交于 2019-12-08 07:28:45
问题 I have a requirement where I want to use Cleartool and 1. I would like to pass a chageset number to Clearcase server and would like to see all files that would be part of that Changeset 2. Pass these file names to Clearcase server and copy the latest version of the files onto my local machine. Is there a way to achieve this functionality using cleartool? Can someone please suggest the commands with the necessary parameters that needs to be passed? Thanks in advance. 回答1: With ClearCase UCM,

Clearcase get file from repository

拜拜、爱过 提交于 2019-12-08 07:27:00
问题 I have file path in ClearCase repository: DWH/MSL/MAPP/META/SP.sql@@/main/10 . I have repository https path which is used for Remote Client: http://clearcase.net:12080/TeamWeb/services/Team I need to download the file from the repository. How can I do this? I've tried to read CC manuals and cleartool manuals but unfortunately it's still not clear. 回答1: That looks like a CCRC url (ClearCase Remote Client: see the feature comparison matrix with ClearCase). That means you need to create a web

How to get a full description of an activity in cleartool?

寵の児 提交于 2019-12-08 06:56:54
问题 I used ClearQuest to export a query to a csv containing information about all my developer activities. However, the description is truncated. Is there a cleartool command that can output the full description of a given activity? 回答1: You can use something like... foreach act ( `cleartool lsact -s` ) set changeset = `cleartool lsact -fmt "%[versions]p" $act` echo $changeset | tr ' ' '\n' >> $tmpoutput end foreach line ( "`cat $tmpoutput`" ) set file=`echo $line | sed -e "s|\(.*\)@@.*|\1|"` end

Cleartool - List Objects with Their Labels

China☆狼群 提交于 2019-12-08 06:49:36
问题 I want to list all objects (including files and directories) recursively with labels their have. When I run the following command, it writes only Rule. It does not write all labels on any object. cleartool ls -r -l /view/stable/MYVOB/MyProject Result : version /view/stable/MYVOB/Car.java@@/main/3 Rule: element * TO_TEST version /view/stable/MYVOB/Driver.java@@/main/2 Rule: element * TO_TEST How can I list the all labels ? In addition, listing modifiers and modification date will be plus for

A Perl system call must send exactly both characters single & double quote ' "

孤街浪徒 提交于 2019-12-08 06:45:33
问题 A Perl system call must send the following string to the UnixShell : '"XYZ"' In my Perl script I have used the following command: system("cleartool mkattr -replace ATTRIBUTE '"$attribute"' lbtype:$label"); Everything is well passed to the Shell Unix , except both uses of the quote character: ' Indeed, cleartool mkattr -replace ATTRIBUTE The above command is passed as it is exactly what I want. The Perl variables $attribute and $label are well interpreted. But I don't know what to do to obtain

How do you get all files of a VOB as of a given date in a clearcase vob?

社会主义新天地 提交于 2019-12-08 06:24:41
问题 I have a fairly large codebase with several directories and files and I would like to check out a view or have a view as of a given date (Septermber 12th). I am manually checking file histories and doing ct get -to someOtherDir/FileName FilenName@@/main/## and this is extremely painful. I wonder if there is a way to do a checkout and load everything as of a particular day at once? 回答1: The easiest way is to make a separate dynamic view, with a config spec including a time-based selection rule

Cleartool difference between -element and -version

佐手、 提交于 2019-12-08 05:18:44
问题 When searching for a way to find all files in a clearcase repo that changed since date X i found two approaches cleartool find . -type f -branch "brtype(abranch)" -element "{created_since(10-Jan)}" -print as stated here and cleartool find . -type f -branch "brtype(abranch)" -version "created_since(10-Jan)" -print as (though modified to resemble the same branch) found here What is the difference between the created_since filter in -version and -element? The results do differ. 回答1: In

How can I bypass a clearcase “file already exists” error?

纵然是瞬间 提交于 2019-12-08 05:14:11
问题 I try to add a file in a branch to source control by doing this: ct mkelem -ci -nc and I get this error: File already exists in "other_branch" branch. Resolution: Since this file already exisit in ClearCase you will have to, selectively, merge this file from other_branch branch to your current branch/view. Well, other_branch is completely obsolete and I would like to use the current branch file im trying to merge 100% as is. Is there a way to communicate this to clearcase on the commandline?

What is the svn equivalent to winkin in clearcase?

那年仲夏 提交于 2019-12-08 05:13:37
问题 I am new to svn, however I am at present making the transition of some Perl scripts from ClearCase. I know that Clearcase have dynamic views, so it can access one or more derived objects (DOs) from a dynamic view, or convert a nonshareable derived object to a shareable (promoted) derived object by the cleartool command winkin . How do I replace it with an equivalent svn command, knowing that svn is static. 回答1: You don't: Those notion of derived object are very specific to ClearCase dynamic

A Perl system call must send exactly both characters single & double quote ' \"

左心房为你撑大大i 提交于 2019-12-08 05:10:29
A Perl system call must send the following string to the UnixShell : '"XYZ"' In my Perl script I have used the following command: system("cleartool mkattr -replace ATTRIBUTE '"$attribute"' lbtype:$label"); Everything is well passed to the Shell Unix , except both uses of the quote character: ' Indeed, cleartool mkattr -replace ATTRIBUTE The above command is passed as it is exactly what I want. The Perl variables $attribute and $label are well interpreted. But I don't know what to do to obtain exactly: '"XYZ"' Here XYZ is the value of the Perl variable $attribute OS is AIX (Unix) and Shell is