clearcase

How to track third-party sources with ClearCase without a headache?

旧街凉风 提交于 2019-12-13 02:22:41
问题 First of all: I am not an experienced ClearCase user, but I have lots of experience with other VCS and *nix command-line tools. WIth ClearCase, I use command-line tool ("cleartool") working in a Unix shell. Problem: I have a small set of sources stored in the ClearCase. Once in a while a fresh .tgz with the same sources comes in and I have to update sources in the repository (process could not be changed so that other party will use ClearCase). Now I do the following: Extract tgz into, say, "

How to make cleartool tell if source is modified since last baseline

倖福魔咒の 提交于 2019-12-13 00:23:23
问题 For build logging, I am able to obtain the current stream and last baseline by means of cleartool (as detailed in "How to obtain UCM stream and baseline with cleartool"). But this is only unambiguous if I can also tell that no changes were made since the last baseline. So: how can I make cleartool tell me if changes have been applied since the last baseline? Bonus question: does ClearCase terminology have a name for this (whether or not the baseline is "untouched")? 回答1: To see if a stream

search the output line and save in variable

泄露秘密 提交于 2019-12-12 23:10:23
问题 How to search word of the output of a shell script and save in other variable . Below command will display the list of baselines in my view . cmd :cleartool lsstream -fmt "%[found_bls]NXp\n" -view $VIEW_NAME Output : baseline:MHC_BUILDTREE1.0.1 baseline:JEPG_DUIF_CI baseline:MOR_BuildTree_BLD_I.0.1 I need to search the line which contains "MOR_BuildTree" and that output line i have to save in one variable to execute the rest of the commands . Can any one give the suggestion ? 回答1: Not exactly

ClearCase checking in and out using c#

本小妞迷上赌 提交于 2019-12-12 19:27:30
问题 Basically I am working on a project where I can select an excel document within clearCase and run my ribbon program which updates the tables onto it. What I want to do in VisualStudio is make it so that the document, gets checked out when you run my addin, but then checks it back in once it is done running. Is this possible? Thanks for the help. 回答1: There is a very powerfull command tool for ClearCase named cleartool. Here the full reference ClearTool Help I would suggest you use Process

Clear Case. How to split very long javascript on multiple lines?

▼魔方 西西 提交于 2019-12-12 13:28:02
问题 I have a JS compressed file which is long about 14k and it is on one single line. This creates some problem on Clear Case, making check in impossible Is there a way to fix clearcase? If I whant to split the JS file on multiple lines, should I pay attention to something when inserting line breaks. Obviously I won't split a string or anumber, after that any other non obvious thing to keep in mind? 回答1: I don't know about ClearCase. A safe place to split is after a ; or } outside of a string

Merge file from one barnch to another branch in Clearcase

社会主义新天地 提交于 2019-12-12 10:10:48
问题 I want to merge a file from one branch to another branch in clearcase, for example from Offshore branch to DEV branch. I want to merge the file with its modification time as it is. If the modification date of a file ( example.asp ) is 12-02-2011 , after merging the file in DEV branch, the modification time for the file ( example.asp ) in DEV branch should hold the same modification time ( 12-02-2011 ). Which view should I take? how should I do merge? Note: I tried preserve modification time

Provide version to independent files in clearcase

跟風遠走 提交于 2019-12-12 09:15:59
问题 I recently started usage of clear case tools for maintenance of code in better way. But after some days my "Company" forgot to take licence from IBM as result I cannot CHECK-IN my code into clearcase. To continue my coding i created a separate folder in other drive and copied code solution in that folder. I and my colleague modified around "9865" files of solution within "45" working days. Now a "Company" borrowed a licence for me and I able to access code clear case tool successfully.

Migrate from ClearCase to SVN/Mercurial

别来无恙 提交于 2019-12-12 07:43:56
问题 At work, we're using ClearCase right now. However, there's a lot of overhead required, especially when someone does something stupid (like erase a view with multiple reserved check-outs on the trunk...). Since we're trying to lower our overhead and be as lightweight as possible, we've through about the possibility of ditching CC and going for something lighter (Subversion or Mercurial), seeing as how we don't use 90% of CC's features anyway. Does this sound reasonable or will we be trading

How to find a Parent Label of a branch in Clearcase

拜拜、爱过 提交于 2019-12-11 15:39:11
问题 I have a view created for a child branch. For a given child branch name, is it possible to find out the parent branch and the base label from which the child branch was created? 回答1: A branch can be created from any version present in that view, as specified by the config spec. The starting point can be a label, or a version reference by other criteria (date, LATEST from another branch and so on) In short: you cannot; ClearCase is file-based, not repository-based. That means you can decide

Automatically add new folders and files to source control

感情迁移 提交于 2019-12-11 14:14:21
问题 We're using ClearCase, integrated with VS2008. Problem is, adding new files into my own personal view will not be reflected when i push (check in) changes. I have to manually add all new files/projects/items into source control and then check them in. Is there any way to automatically be able to get all new items into source control? 回答1: If your current solution has been added to ClearCase (provided the runtime security level in .NET allows it), then simply adding files within a snapshot