clearcase

Trying to undo a cleartool rm

心已入冬 提交于 2019-12-08 07:55:28
I was trying to migrate a file from directory A to directory B in a branch, call it file.txt. What I did was: cd A cp file.txt ../B/ ct rm A cd ../B ct mkelem -ci -nc file.txt Thereby losing all the history. I am trying to recover from this to do what I should have done which is simply ct mv file.txt ../B I read that for this I should do something like this: cd A ct ln .@@/main/?/file.txt ./file.txt where luckily, from another view, I've figured out ? should be 27. Unfortunately when I try to do the above I get: cleartool: Error: Entry named "file.txt" already exists. cleartool: Error: Unable

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 integrate Clearcase developpement history into Git?

喜欢而已 提交于 2019-12-08 07:53:11
问题 First off : yes I know there are several CC--git migration subject, but they don't offer anything valuable to my problem. They deal with some ways to use git locally and push back to ClearCase, which is more or less the opposite of what I want to do. I am responsible for integrating work from 2 production sites (I am also a programmer in one of these production site). Site #1 (mine) is where integration is done and we use git (Single repository master/devel/topic branches) Site #2 uses

Clearcase UCM Configuration with Jenkins to get latest baseline Integration code

非 Y 不嫁゛ 提交于 2019-12-08 07:52:44
问题 Can someone please help me why am I getting this error? I am running Jenkins from one of my VDI machine and connected to Clearcase windows server. I am able to get the latest baselines so basically it is getting connected to clearcase server but I am not sure why it is changing the stream name while running the command. Console Output: Building in workspace C:\Jenkins\workspace\Test Forms [CCUCM] ClearCase UCM Plugin version 1.7.0 [CCUCM] Allow for slave polling: false [CCUCM] Poll for posted

How to delete a clearcase branch with a single command?

若如初见. 提交于 2019-12-08 07:40:58
问题 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? 回答1: You can try and delete the byrtpe (branch type) with cleartool rmtype brtype:xxx. That is possible

How do I retrieve a file if I undid a folder checkout in ClearCase?

泪湿孤枕 提交于 2019-12-08 07:40:40
问题 For reasons unknown, a folder was checked out to me in ClearCase. A coworker was working on a word document stored in that folder. I undid the checkout on the top level folder. Her document disappeared and she doesn't have a local copy. Have I totally screwed her over here? Is there any way we can get it back? Is it stored somewhere on the server and we just can't see it with the standard GUI interface? I was under the impression that you couldn't add to a folder if someone had it checked out

ClearCase script - I need a list of all the component of a certain stream that still needs delivery to default

风格不统一 提交于 2019-12-08 07:35:20
问题 I need a list of all the component of a certain stream that still needs delivery to default 回答1: There doesn't seem to be one simple command to use. You would have to initiate a preview of a deliver, to see which ones would actually need said deliver. cleartool deliver -preview Since the default for a deliver is to deliver all activities in the stream that have changed since the last deliver operation from the stream, that would allow for detecting any activity candidate for delivery,

What is the difference between locking an element version and locking a Label Type [lbtype]

南楼画角 提交于 2019-12-08 07:33:14
问题 " cleartool lock " command can be applied to lbtype object " REL1 " as well as " file element foo.c version \main\3 ". Assume REL1 has been applied to foo.c@@\main\3 . Assume foo.c@@\main\2 is unlocked. Applying lock to lbtype object " REL1 " will prevent applying " REL1 " to any more versions of any other files. This will not prevent replacing " REL1 " on an foo.c version \main\3 with another yet unlocked LABEL TYPE " REL2 " for example. This will prevent relocating " REL1 " to foo.c@@\main

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

What is the best practise to organize different applications under VOBs

前提是你 提交于 2019-12-08 07:29:39
问题 This is a follow up question to this answer: https://stackoverflow.com/a/9579131/1204799 "It is best to create root-based components" If I have several standalone applications (which means their development and deployment are independent), shouldn't I create different VOB to accommodate them? What I'm doing now is that, I have one single PVob, which contains a few UCM projects, each UCM project has its own Vob and baseline component(a component without Vob). Am I doing it the wrong way?