clearcase

ClearCase: How to Uncheckout Files in Shapshot View Deleted From File System

孤街浪徒 提交于 2019-11-29 08:47:11
Four months ago a colleague had a shapshot view that he deleted from the file system while there were still directory checkouts on a certain branch, say branch 'A'. Now some of directories are obsolete and need to be rmname 'd from other views, but this cannot happen apparently while they are still checked out on branch A. What is the most direct way to unco these directories on branch a? You can unregister completely this view (even if the actual view is gone from the filesystem). See " ClearCase: Is it possible to cancel checkouts not made from your own view? ": cleartool rmview -force -uuid

Equivalent of the clearcase baseline and clearcase activities in Git?

北战南征 提交于 2019-11-29 08:41:05
To convince certain persons to shift from Clearcase to Git , I need to show them alternatives to the baselining and checking in/out documents under activity names. How can these be achieved in Git? I only saw the tagging option coming into the picture in this scenario, but that seemed to be useful for creating version numbers rather than for baselining or activity names. VonC You can read in my old answer a good comparison of ClearCase and Git. " What are the basic ClearCase concepts every developer should know? " They key aspect to understand is that a Git repository would be the equivalent

Remove unused source code files

落花浮王杯 提交于 2019-11-29 08:37:44
In Visual Studio 2010 I have a large solution that contains number of .cs files that are no longer used (not referenced in .csproj), but still present in code repository (ClearCase). Do you know of any tool / extension / script that would find all such files? One could write a script that goes through all projects' directories, takes all files that are checked in and than compares against content of a project file. In it is not there, than we have a candidate for deletion. It is not too exotic, so I wonder whether such a script already exist. Otherwise it will be a good occasion to get dust

How can I find all elements on a branch with version LATEST that has no label applied?

可紊 提交于 2019-11-29 08:26:33
As the title said: I would like to find all elements that are on a branch (e.g. DEV_BRANCH ) with LATEST version but that has not yet had any label applied to them. I know how to find elements that does not have a particular label applied (as in: ClearCase: How to find elements that do NOT have a particular label , ClearCase: How to find files which was not labeled as “Label_Name” on CURRENT Version filtered by config spec ) But I don't know how to find elements that hasn't got any label applied. Thanks in advance Mikael The simplest way would be to: find all element with a version in the

Synchronize with stream clear case integration view

こ雲淡風輕ζ 提交于 2019-11-29 08:12:59
On my clear case integration view there is an option 'Synchronize with stream' which is sometimes enabled and sometimes disabled. What governs if this is enabled or disabled? Also it seems when i click this, it just updates the integration view. So why we need a separate function like 'Synchronize with stream' when we can just update the integration view? VonC That button is only active when the configuration of your view (ie the list of baselines listed by your config spec) isn't the same than the configuration of your stream. The fact that is also update the view is only a side-effect of

How to use ClearCase Annotate

血红的双手。 提交于 2019-11-29 08:08:32
I'm trying to use annotate but have a problem: The output ignores some information (date and username) if it was displayed for the same version before. I'd like to display them in any line. This is my command: cleartool annotate -out - -rm -nhe -fmt "%Sd ||| %-12.12u ||| %Vn ||| ,,%Vn ||| " -rmf "" "G:\views\myview\myprojectvob\Form1.frm@@\main\john_myprject\12" That's the output. I'd like to get date and username for the second and third lines as well. Do you know if that's possible? 2008-05-22 ||| john ||| \main\john_myproject\10 ||| End Sub \main\john_myproject\10 ||| \main\john_myproject

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

杀马特。学长 韩版系。学妹 提交于 2019-11-29 07:45:52
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. This should work: ct find -all -ele '! lbtype_sub(LABEL_X)' -print ct find -ele '! lbtype_sub(LABEL_X)' -print Notes: ct stands for cleartool Unix

How can I retrieve a file through Label in Config Spec?

北战南征 提交于 2019-11-29 07:16:13
I have labelled a file " Test.java " with a label called " My_Label ". When I try creating a view with the below config specs, I am unable to get the file in Clearcase Explorer. element * CHECKEDOUT element * My_Label Could anyone please tell where am I going wrong in the above config spec? VonC That selection rule alone isn't enough. You need to add, before that rule, other rules that will select the right version of the parent directories. In other words, if your parent directory (or one of the ancestors) of Test.java isn't labelled with My_Label, it won't be selected at all . So your file

What is the best strategy when migrating from ClearCase to SVN?

痴心易碎 提交于 2019-11-29 03:21:31
We are considering moving from ClearCase to Subversion. The project has been there for a while (7 years) and there are three "major" versions (branches) that we actively support, plus some occasional fixes in older releases. The project is fairly large - around 2 mln lines of java code. I am curious if there is someone that has done similar migration. Will SVN be able to handle such a large project? Does it make sense to migrate all historical versions/branches? Are the tools that could do it selectively? How long will the migration process take for such a project and what is the effective way

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

空扰寡人 提交于 2019-11-29 02:29:17
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? VonC 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 this SO answer ) Then, you can add this command to the ClearCase menu entries from the Windows explorer,