clearcase

How to find files asssociated with a ClearCase UCM activity?

爱⌒轻易说出口 提交于 2019-11-28 01:34:14
Can someone help me with the following question: How can I find files that were checked in with some activity. For example: I am working on a view called syoffe_my_product_view and in the past I created an activity - BUG123_activity . Now I need to find all the files that were checked in with this activity What command/option do you recommend? VonC See cleartool lsactivity man page : cleartool lsactivity -l activity-id@\aPVob # (windows) cleartool lsactivity -l activity-id@/vobs/aPVob # (unix) You have also the describe option with fmt_ccase cleartool describe -fmt "%[versions]CQp" activity

ClearCase: How to find elements that do NOT have a particular label

扶醉桌前 提交于 2019-11-28 01:31:15
问题 I'm looking for a ClearCase command that will list all the elements that are visible in my current view, but do NOT have a particular label applied to them. Say for example, most of the elements that are visible in my view have LABEL_X applied to them. I want a list of those elements that do not have LABEL_X . I obviously need to use cleartool find , but the usage and ClearCase man page baffle me in terms of how to construct a query like this. 回答1: This should work: ct find -all -ele '!

Moving from SVN to ClearCase

对着背影说爱祢 提交于 2019-11-28 00:32:26
So, it's the opposite way round this time - I need to migrate a SVN-based project into ClearCase. Is there any tools out there that'd make the process a bit easier (rather than putting together a custom script) and are there any gotchas from anyone who has had experience doing this? Thanks! VonC As mentioned here (ibm) and in this thread , there is no direct tool to import SVN data to ClearCase. That means a custom script setting your SVN workspace to relevant milestone, and then clearfsimport those into a ClearCase view with a "proper" config spec (i.e. "configuration specification"). By

Config spec in ClearCase

时光总嘲笑我的痴心妄想 提交于 2019-11-28 00:30:17
I have tiny question about ClearCase. Help me please! When does config spec start to work? When I click CHECK OUT or CHECK IN ? I have test.c and I have config spec element * CHECKEDOUT element * .../branch_1/LATEST element * /main/LATEST -mkbranch branch_1 then I modify test.c , then I change config spec: element * CHECKEDOUT element * .../branch_2/LATEST element * /main/LATEST -mkbranch branch_2 Then I Check in test.c and I have: created /main/branch_1/1 . BUT WHY??? VonC The config spec will apply the rules on each update and on checkout, and on checkin (but not as you think it would). On

What's the easiet way to detect “evil twins” in Rational ClearCase?

自作多情 提交于 2019-11-28 00:27:00
I'm using ClearCase 7.1 I suspect we have some evil twins. I'm looking for the most efficient way to find them out by scanning the VOB or any other ways. Is there any script that applies it? For the next coming evil twins we'll use a trigger that prevents it. Thank you Unless you benefit from the integrated evil twin detection from ClearCase 8.0, the only way remains cleartool find command: See " About Evil Twins, "locate" section " for some examples: you run the following command from two views and compare the output (oid and pname), you can verify whether there is an evil twin situation on a

Clearcase: findmerge usage

℡╲_俬逩灬. 提交于 2019-11-28 00:25:13
I have a branch B1 and another branch B2. I want all files/subfolders (recursively) inside a particular folder X (and not on entire VOB) on B1 to be merged onto B2. What exact findmerge command do I need to use? The below commands will work for entire vob or if I run them by getting into the directory in question, that will suffice for me? cleartool findmerge . -type dir -nc -fver .../dev/LATEST -merge cleartool findmerge . -nc -type file -fver .../dev/LATEST -print Thanks a lot in advance. After checkin the findmerge man page : You shouldn't need to merge first the directories, then the files

Migrating from clearcase to mercurial

孤人 提交于 2019-11-27 23:02:00
What tools are available to migrate from clearcase to mercurial? Is it possible to move history? What kind of limitations are there? VonC Do not forget that ClearCase ( Central VCS) and Mercurial ( Distributed VCS) are very different. See Core ClearCase concepts for a full list. In the case of a migration, that means you are dealing with a repository-centric VCS (Mercurial) which implies "working with timelines" (a timeline being a commit, building a new changeset) In ClearCase though, there is no global timeline, as each file is committed individually (file-centric VCS). So for a migration,

Undo remove file in ClearCase

只谈情不闲聊 提交于 2019-11-27 22:58:47
I have a ClearCase view with a folder, and two files. I check out the folder, remove a file and check the folder back in. I am left with one folder and one file. Is there a way to get my file back? I'm using the standard Windows suite of tools, which include cleartool. Yes, it is possible to get the file back. This is an important feature of ClearCase (and a life-saver on occasion). Let's say that your directory is /vobs/somevob/somedir . The version of the directory with two files in it was /main/3 ; the version with one file was therefore /main/4 . The dropped file is /vobs/somevob/somedir

How to search files by label

折月煮酒 提交于 2019-11-27 22:35:09
As title, I'd like to list all the files with a given label under a directory. Which clearcase command can help me to do that ? VonC cleartool find is a good start. You can execute those anywhere within your (snapshot or dynamic) view To generate the list of those elements which contain a version with a predetermined label (REL1) attached, use the following syntax of the cleartool find command: UNIX and Linux: % cleartool find -all -element '{lbtype_sub(REL1)}' -print Windows: cleartool find -all -element "{lbtype_sub(REL1)}" -print There is also a graphical way to find objects with a certain

Sync GIT and ClearCase

拜拜、爱过 提交于 2019-11-27 19:31:47
I am currently working on ClearCase and now migrating to GIT. But we need this migration in a way that all work will be done in GIT and the data will be synced backed to ClearCase stream. We will have the same branch names and stream names in both GIT and CC, so scripting shouldn't be a problem. The problem here is, Can someone suggest which is the best model to sync CC and GIT Have all the Vobs in CC as single repo in GIT, and have the major stream in CC as various branches in GIT. - Single GIT repo (VOBS) and many branches (CC streams). - This takes up less space as VOBs are kept as single