clearcase

Using Visual Studio 2005 with ClearCase Eclipsed Files

徘徊边缘 提交于 2019-12-19 11:27:28
问题 I'm trying to use Visual Studio 2005 with ClearCase eclipsed files (view private which "eclipse" a versioned file), but any time I save the file in VS, it becomes uneclipsed, and returns to the versioned file. In Linux, I use VIM instead of Visual Studio, and get around this problem by setting backupcopy=yes, thereby forcing it to save files by writing to a new file and then copying the new file over the existing one, instead of moving the original file out of the way (which undoes the

Merge changes from clearcase label to git branch

旧巷老猫 提交于 2019-12-19 11:24:53
问题 We are using clearcase and git for version control. I have a situation where my fellow colleague has released few changes in a developer label in clear case. Now i want to pull those particular changes to git branch. Is there a way to achieve this? 回答1: Yes, make a snapshot view with a config spec selecting that label. Then from your separate git working tree folder, do git --work-tree=path/to/snapshot/view add . # or, to limit files added: git --work-tree=path/to/snapshot/view add -- afile

Clearcase error adding file

旧巷老猫 提交于 2019-12-19 11:21:04
问题 I cannot add a new file to the VOB. I tried both UI context menu on windows as well as cleartool command line utility. cleartool> checkout . Checkout comments for ".": Created branch "BRANCH_NAME" from "." version "\main\BASE_BRANCH_NAME\1". Checked out "." from version "\main\BASE_BRANCH_NAME\BRANCH_NAME\0". cleartool> mkelem -ci -nc NewFile.h Created element "NewFile.h" (type "text_file"). cleartool: Error: Unable to check out "NewFile.h". cleartool> uncheckout . describe -l . shows me that

Clearcase and java process : changing view does not apply

我是研究僧i 提交于 2019-12-19 10:48:26
问题 i have a simple application, which receives input from a user for a CC stream name, and is suppose to return the content of a specific file from this stream repository. I have tried doing this using a simple shell script: user enters stream name, java receives stream name, runs a process which runs a script "myccscript.sh" which contains "myinput=$1; cleartool setview $myinput" (or something like that). then i try reading the file and printing it's content in the java side. BUT, after the

ClearCase Config Spec: load only files with specific label from certain directory

我怕爱的太早我们不能终老 提交于 2019-12-19 10:48:22
问题 Suppose I have a VOB foo/. In this VOB lies a directory bar/ which contains labeled and non-labeled files. But bar/ is not the only directory in foo/, but all others don't have labeled files. Is there a way to write a config spec with the following behaviour: load all elements that are checked out for every directory except foo/bar/ load the main/LATEST version for the directory foo/bar/ load only the files which have that specific label, if this label does not exist, do not load the main

Difference between two versions in ClearCase dynamic view

≡放荡痞女 提交于 2019-12-19 10:47:11
问题 Say , I've two different dynamic views in ClearCase. I would like to know if there is any command to give a report with: " x lines added , y lines deleted , z lines changed " between two versions. 回答1: Yes, you can use diffstat to produce a very nice, visual "x lines added , y lines deleted , z lines changed" overview (1). Here is an example of the output from comparing the two latest versions of diffstat: $ diff -u diffstat-1.53 diffstat-1.54 | diffstat CHANGES | 12 +++++++++++- diffstat.1 |

How to setup activity automatically for a view?

我们两清 提交于 2019-12-19 10:15:55
问题 In our build , we use to delete our view and create new view before build. It was working without any issue in base clearcase. But in UCM we face issues while check-out and check-in due to activity name has to be assigned every time. Is it a good practice to create new activity whenever i build? [ But number of activities will be soon increased to enormous] Is there any easy way to setup default activity automatically in UCM? Has any body automated this in their build process? If so can you

Command to find labels applied on particular branch

允我心安 提交于 2019-12-19 10:08:32
问题 Command to find labels applied on particular branch.. Suppose i have a branch name called BR_test , i want to know what are all the labels applied on this branch. 回答1: If this was UCM, a simple lsbl would be enough: cleartool lsbl -stream myStream@\mypvob But if this is base ClearCase, the simple way would be to determine what element (directory or file) is always labeled (typically a root directory), and fetch all the labels on that element for a given branch, through a combination of

Access labels of file through extended filename as directory

让人想犯罪 __ 提交于 2019-12-19 10:07:48
问题 I want to list all labels of a specific file in ClearCase. Based on the last approach in the accepted answer at (how to find all the labels for a given file in clearcase) I want to use a combination of cd and dir . I only use dynamic views and as we have thousand of versions I guess this approach is much faster than a slow cleartool query (ClearCase is slow as hell here). For info I work on Windows only. Here is the mentioned approach: cd m:/myView/path/to/addon.xml@@ # list all files, not

Getting filename, location and author of changed files using RTC source control

こ雲淡風輕ζ 提交于 2019-12-19 04:47:49
问题 I'm trying to access the filename, location and author of changed files for a given stream. Below code is what I have so far. Looking at the api documentation this does not seem possible? Can this be achieved using the java api or some other method ? IChangeSetSearchCriteria c = IChangeSetSearchCriteria.FACTORY.newInstance(); WorkspaceManager mgr = (WorkspaceManager) SCMPlatform.getWorkspaceManager(repo); IWorkspaceSearchCriteria criteria = IWorkspaceSearchCriteria.FACTORY.newInstance();