clearcase

why I only get a clearcase version 0?

扶醉桌前 提交于 2019-11-26 21:10:44
Normally, the first committed version should start from 1. Version 0 is identical with branch point. But now I got a only version 0, and this prevent me to checkin any other version coz it warned me that the branch already created. As explained in "Before adding files and directories to source control" , the version 0 is a placeholder marking the start for all versions in a given branch: You can end up with only the version 0 when you undo-checkout a file you just checked out in a new branch (in that case, only a version 0 for the newly created branch remains). Regarding branches, you can have

Find local copy of files in snapshot view

非 Y 不嫁゛ 提交于 2019-11-26 21:07:41
I'm using the ClearCase Automation Library (CAL) in a tool that helps me keep track of unintegrated changes; now I'd like to extend the tool so I can also make checkins through it. For this feature, I need to find the local copy of a Snapshot View. While I can ask CC which View is attached to a certain directory, I cannot seem to find a function to look up the local directory for a given View; also it appears as if the most reliable method to find out whether a Snapshot View exists locally is to compare the HostName property against the local computer name. So: Given the IClearCase interface,

Command to delete branches of Clearcase element with “0” versions

 ̄綄美尐妖づ 提交于 2019-11-26 20:46:27
问题 What is the command in Clearcase to delete the branches of an element in which it is not modified (Element's version in that branch is "0") ? 回答1: You can simply remove the version 0 of that element (that I detail here). That will remove the associated branch. cleartool rmver file@@/main/aBranch/0 You would need to " cleartool find " all elements with a version 0 (and no version 1), and rmver those version 0. For a given branch, this would return all the versions to delete: cleartool find

Flexible vs static branching (Git vs Clearcase/Accurev)

不想你离开。 提交于 2019-11-26 19:38:55
My question is about the way in which Git handles branches: whenever you branch from a commit, this branch won’t ever receive changes from the parent branch unless you force it with a merge. But in other systems such us Clearcase or Accurev, you can specify how branches get filled with some sort of inheritance mechanism : I mean, with Clearcase, using a config_spec, you can say “get all the files modified on branch /main/issue001 and then continue with the ones on /main or with this specific baseline”. In Accurev you also have a similar mechanism which let’s streams receive changes from upper

Creating a new subdirectory structure in ClearCase?

微笑、不失礼 提交于 2019-11-26 19:09:25
I'm a ClearCase newbie and up until now have been used to SVN. Therefore, I'm a bit confused on the steps I need to take to create a new directory structure containing multiple files to ClearCase. So, say for example there is an existing directory structure within ClearCase as follows: \ParentDirectory \ChildDirectory1 \File1 \File2 \ChildDirectory2 \ChildDirectory3 \File1 \ChildDirectory4 If I want to add a new subdirectory to this structure, ChildDirectory5, which will contain a number of other files, how do I go about this? From what I have been reading, I will need to first of all check

Describe baseline and expand deliver and rebase activities

烈酒焚心 提交于 2019-11-26 18:39:26
问题 I need to list all of the activities delivered in a baseline but need any deliver and rebase activities expanded. I have tried a script to read the lines and do an "lsact -contrib" but some of the deliveries contain nested deliveries and I have become confused. It would be useful if I could also have the date of the activity as well. I have tried experimenting with "-fmt" but with disappointing results. The reason is that the management want to identify all activities in a baseline that

find files in clearcase

被刻印的时光 ゝ 提交于 2019-11-26 18:39:01
问题 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 回答1: 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

Get ClearCase Snapshot Views via ClearCase Automation Library (CAL)?

允我心安 提交于 2019-11-26 18:38:42
问题 Is anyone using the ClearCase Automation Library (CAL) successfully to retrieve snapshot views? I can get all the dynamic views just fine, but not a single one of my snapshot views appears in the 'Connection.get_Views(true, region);' command... Is there any way to get these programmatically as ICCView instances? 回答1: How about: Dim CC As New ClearCase.Application CC.Views(true, myRegionName) It should gets the collection of views in the specified region, including snapshot ones. (Note: this

Clearcase: checkout and modify but forbid checkin

荒凉一梦 提交于 2019-11-26 18:38:01
问题 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.) 回答1: "Hacking some files" is spelled in ClearCase lingo: hijacked files in a

ClearCase wants to merge unchanged files after deliver to alternate target

ぐ巨炮叔叔 提交于 2019-11-26 17:49:34
问题 Using Rational ClearCase v. 7.0.1.1 with UCM, I have a problem here when using ClearCase's "Deliver from Stream to Alternate Target" functionality. Imagine we have one project integration stream and two developer streams A and B derived from it. Now I change a file in stream A. I want the delevoper owning stream B to be able to use my work without me having to deliver the file to the integration stream yet, so I deliver from stream A to the alternate target stream B. So far, so good. I go on