clearcase

Clearcase command to export an element

﹥>﹥吖頭↗ 提交于 2019-11-27 19:27:13
问题 Is there any command in clearcase which I can use to export a paricular version of a file? (i.e. an element). I am doing a find label with a given label (using ct find . -ver lbtype(label) -cview -print command) and want to export the elements returned by the find label to hard disk. 回答1: cleartool get could work (in a snapshot or dynamic view). get –to C:\build\foo.c.temp \dev\hello_world\foo.c@@\main\2 You would need a script though, to extract from the %CLEARCASE_PN% the file name, and

How do I determine what files in my ClearCase local view have not yet been added to source control?

你离开我真会死。 提交于 2019-11-27 19:11:30
问题 If I have added/removed/modified a large number of files in my local ClearCase view, how can I be certain that all the files have been added to source control? 回答1: Your answer is correct, for snapshot views (which you call 'local view' ?) In a dynamic view, a simple cleartool lsprivate would suffice. But that would leave out hijacked files (which are already added to source control, but may have been modified without ClearCase knowing it) So I would recommend to complete your command with

How to find element(s) which are not present in the clearcase recursively?

柔情痞子 提交于 2019-11-27 16:45:00
问题 How to find element(s) which are not present in the clearcase recursively , let us say from project root folder i want to know the list of files which are not part of clearcase. Can some one help me on this? 回答1: First you need to find them through the command line interface, in a DOS session for instance: for /F "usebackq delims=" %i in (`cleartool ls -r -nxn ^| find /V "Rule:" ^| find /V "hijacked" ^| find /V "eclipsed"`) do @echo "%i" (See the discussion on how to find private files in

how to create a branch in clearcase with GUI operation only?

可紊 提交于 2019-11-27 16:34:13
问题 I searched for a while and tried to find a way to create a branch in clearcase, but cleartool commands are used in all the articles I found. I'm just curious that is there any other way to use GUI operation only? 回答1: Of course, you can create a branch through the GUI. If you are using UCM: you can open the ClearCase project explorer, define a new stream, create a view on it, open the ClearCase explorer checkout any file and select its version tree You will see a new branch created for that

Clearcase: checkout and modify but forbid checkin

半腔热情 提交于 2019-11-27 16:27:37
Is it possible in clearcase to checkout a file for modification such that it is impossible to check it back in? I’m going to be hacking some files on a private branch, only some of which I want to ever check in. I want to eliminate the possibility of accidentally checking in unwanted changes. (I know we can write a trigger to check for magic keywords in the checkout comment; I'm look for something built-in to CC.) VonC "Hacking some files" is spelled in ClearCase lingo: hijacked files in a snapshot view . All you have to do is to: lock those files (except for the few developers you know are

find files in clearcase

北城以北 提交于 2019-11-27 16:27:02
situation: one vob, 2 views (main dev and branch view). i need to find all files that where created in the branch view and therefore can't be found via merge manager. anyone able to help? thanks When it comes to cleartool find, the two sources of information and example I recommend are: SAMECS find command IBM find examples In your case: cleartool find -all -ele "brtype(mybranch) && !brtype(main)" -print (supposing "main dev" means "branch 'main'") cleartool find -all -type f -ele "brtype(mybranch) && !brtype(main)" -print would limit that to files only (not directories) 来源: https:/

How to open a dynamic view in clear case with a given config spects using command prompt?

[亡魂溺海] 提交于 2019-11-27 16:26:35
I have config spects for a view and I need to create a view in Clear Case using command prompt. Please let me about the commands I can use with some example. Thanks in Advance! That would be using: cleartool mkview followed by cleartool setcs -tag yourDynView pname , with pname being "a text file whose contents are to become the view's new config spec". For creating a dynamic view: cleartool mkview -tag yourDynView \\shared\path\to\viewStorage\yourDynView.vws That will create a dynamic view with a default config spec: element * CHECKEDOUT element * /main/LATEST You will then be able to replace

ClearCase: Working offline hijacking files, then checking out / merging

 ̄綄美尐妖づ 提交于 2019-11-27 16:10:41
I'm looking at a scenario where I have an offline clear case view and I modify files in this view clearing the read-only attribute (hijacking) on the files I modify then several days later I take the view online and need to get my offline changes into the stream. What I would do is check out the hijacked files and check them back in (merging when necessary). Is it always safe to work this way? Is it possible that while adding my changes I would accidentally overwrite other people's changes done while I was working offline? Any recommendations on how to use ClearCase offline? Thanks! (I'm

How to run multiple Unix commands in one shot

允我心安 提交于 2019-11-27 15:51:55
I am trying to execute multiple commands in one shot but to my surprise only the first command is getting executed and the rest are skipped. And the command is cleartool setview view1234 ; cleartool setactivity activity456 ; cd /vobs/app/src/epw/WEB-INF/scripts ; pwd And the output of the above command is You can now run 'clearquest' to start Rational ClearQuest. But instead I'm expecting to see the following 3 lines of output: You can now run 'clearquest' to start Rational ClearQuest. Set activity "activity456" in view "view1234". /vobs/app/src/epw/WEB-INF/scripts My search efforts yielded

Detect hijacks with only content change in ClearCase snapshot view

早过忘川 提交于 2019-11-27 15:51:00
Normally, an update of a snapshot view detects hijacks by examining file size and timestamp. Is there a way in clearcase to detect a file whose size and timestamp is unchanged but the file content has changed? This isn't taken into account by ClearCase, since it assumes that, if the content has changed, the timestamp also has. See " How the update operation determines whether a file is hijacked ": When a version is loaded into a snapshot view, the file size and last-modified time stamp (as reported by the UNIX® or Windows® file system) are recorded in the view database. These values are