cleartool

ClearCase find and exec with %CLEARCASE_PN% in cmd always returns same element

巧了我就是萌 提交于 2019-12-11 05:52:29
问题 I executed the following command in cleartool.exe: cleartool> ! Microsoft Windows XP [Version 5.1.2600] ... X:\dyn_view\vob\path>cleartool find . -type l -exec "cleartool describe %CLEARCASE_PN%" -print But the element output is always the same regarding exec , albeit being different in print . How to output the correct list in the exec part of the command? Example output: symbolic link ".\path\fileA.txt" -> ../../path/fileA.txt created ... .\anypath\fileB.txt symbolic link ".\path\fileA.txt"

List of directories off of the root of VOB in cleartool

爱⌒轻易说出口 提交于 2019-12-10 11:46:56
问题 If I am in a vob (pwd command displays the correct vob) and lsvob <VOB_NAME> returns some info about the vob, how can I get a list of all the directories from the root? The setview command has also been run. When I do ls , I get: Error: Pathname is not within a VOB: "." 回答1: cd /vobs/myvob cleartool ls # or cleartool find . -type d -print The first one lists all elements within the view. The other one lists all the directories. The OP foampile mentions: cleartool mount /vob/<MY_VOB> i tried

How to annotate a folder in cleartool

南楼画角 提交于 2019-12-10 11:44:29
问题 I am trying to annotate a folder with command cleartool annotate folderName getting error cleartool: Error: Unable to create file "test_tut_element_vob.ann": Permission denied. I am able to annotate the files. 回答1: The cleartool annotate man page mentions the following caveat: The annotate command extracts information from the element's versions. To do so, it invokes the annotate method of the element's type manager. Only the text_file_delta and z_text_file_delta type managers (which

ClearCase; How to make a baseline with cleartool

家住魔仙堡 提交于 2019-12-10 10:15:29
问题 I am currently using ClearCase over a remote network and it is painfully slow. It takes forever just to browse to the stream that I want to make a baseline of. Is there a quick, easy, and safe way to make a baseline from the cleartool interface of a specific stream? Thanks, Ian 回答1: The basic command, from cleartool man mkbl: cleartool mkbl -view anUCMView aBaselineName You need a view associated to your target Stream to apply the baseline. I recommend using the -full option, in order to

How can i list the recommended base line in ClearCase

五迷三道 提交于 2019-12-09 01:50:42
问题 I'm currently writing a script that has to check the recommended baseline of the Integration stream, so the only parameters that I know is the stream name, I'm wondering if there is a way to do that using cleartool on linux (bash script). Here is my Vob: And this is the Stream: 回答1: You can use the fmt_ccase option %[rec_bls]CXp : On Windows: cleartool descr -fmt "%[rec_bls]CXp" stream:streamName@\aPVob On Unix: cleartool descr -fmt "%[rec_bls]CXp" stream:streamName@/vobs/aPVob You can see

Is there a way to get the line number which have added in the cleartool annotate command

我们两清 提交于 2019-12-08 19:26:28
I want the line number which has been added or changed in the particular revision or corresponding to particular comment.how can i do that in cleartool VonC There is no equivalent to a git log -S or -G (pickaxe search) in ClearCase. The closest is to parse out the result of a cleartool annotate (as seen in the OP's previous question ). You can annotate a specific revision by using the extended pathname as the pname argument (for example, foo.c@@\main\bug405 ) Then you can grep the output of that annotate call in order to grep a particular line or comment. 来源: https://stackoverflow.com

ClearCase [cleartool] commands error messages and error handling

落爺英雄遲暮 提交于 2019-12-08 08:46:58
问题 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

COM reference or Command tool for ClearTeam Explorer

China☆狼群 提交于 2019-12-08 07:57:34
问题 I have been using IBM Rational ClearTeam Explorer version 8.0.0. I like to come up with customized tool(WPF application) to performing ClearTeam actions like makebaseline, checkin, checkout. Is there any command tool and COM object availabe to perform these functions. I would be helpful if there are any reference link also. 回答1: The official API for CM/ClearTeam is in java, not COM. It is the CM API, a standards-based Java API for ClearCase, which in the 8.0 release, adds support for

Add line to ClearCase config

余生颓废 提交于 2019-12-08 07:54:31
问题 I am running a job on Jenkins which is used to create a view on ClearCase and the ClearCase view creates the default config spec. I want to edit the config spec by adding some more lines to it but I don't want to edit it manually every time. So I am looking to add some script to Jenkins so that it can edit the configspec every time when it runs the job. Is there anyone how is clear case expert who can task it out. 回答1: Once your ClearCase view is created you need to get its config spec as a

How to avoid the rebase command in clearTool popups a screen?

扶醉桌前 提交于 2019-12-08 07:33:13
问题 I am trying to rebase a baseline using this command in ClearTool: rebase -bas [baseline_code] However, after this command, a screen pop up with this question: Do you wish to name the Deliver/Rebase activity (if no, press Enter or Cancel to use the default name) I want to avoid this screen because I want to implement it in a code, for this reason, is there any command to add in this rebase, then it can stop to show this screen? Or is there any kind of set up that I have to do in ClearCase to