clearcase

how to map network drive for Clearcase View in Windows service?

a 夏天 提交于 2019-12-01 10:38:15
I want to map a clearcase view on network drive inside a windows service. I have tried with net use command, but it did not work properly. You should be able to run the same kind of command than the one used when paths are too long , which is subst : subst X: c:\path\to\my\View # for snapshot view subst X: M:\myView # for dynamic view in order to map a view to a drive letter. This should work from within a service, provided: you are using your Windows account (and not the "Local System account") the dynamic view is already started (and visible in the M:\ MVFS mounting point drive) Garen I wish

UCM Clear Case: Hiereachy of streams in one project vs multiple projects

本小妞迷上赌 提交于 2019-12-01 10:36:18
We have a project and are about to add a new piece of functionality to otherwise stable codebase without any major changes going on except defect fixing. The plan is not develop the new feature separately for a while (probably a month) doing intermediate builds and testing and as the feature is finished and the quality is acceptable merge the code of the new feature in the main branch. The question is what of the following two scenarios is better in terms of Clear Case: Creating a new project based on a baseline in the integration stream of the current project, developing the new feature in

clearcase snapshot hijacked files : how to checkout/checkin changed files

穿精又带淫゛_ 提交于 2019-12-01 10:36:12
问题 Clearcase sucks a lot. It seems I cannot just save modifications to my project quickly. By quickly I mean in less than 1 second. The solution I have found is to use the combo clearcase + git. I'm using snapshots views because I can easily hijack my files without having to checkout all the files in my project every time I want to do refactoring. The problem is, when I play with git and navigate between new and old versions, clearcase think all the files are hijacked. Then I need to do the

How to get ClearCase stream name by a given view path?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 10:12:40
Let's say I'm inside a view on Linux (snapshot or dynamic). I forgot what's the stream that that view belongs to. How do I get it? Should I extract if from the config-spec (after -mkbranch ) or is there any better way? You can take advantage of the -cview option of the lsstream command : cleartool lsstream -cview With fmt_ccase : cleartool lsstream -fmt "%n" -cview I like to see where this stream is located within a project, so I usually do a: cleartool lsstream -cview -anc 来源: https://stackoverflow.com/questions/19127353/how-to-get-clearcase-stream-name-by-a-given-view-path

Copying an element from Clearcase with a particular label without using config specs

三世轮回 提交于 2019-12-01 09:33:35
How to copy an element or file from Clearcase with a particular label , without applying that label in config specs . I don't want to change the config spec of my view, but I need to access an older version of one of my selected files, and I would like to do so directly from my existing view (again, without changing anything). I know the version I want to restore (from instance version 2, even though I am selecting currently version 3 in my view). What cleartool command would you use in order to access said old version? VonC You can use the extended pathname , but only using a dynamic view

How to retrieve stream name by a given view name in ClearCase UCM?

偶尔善良 提交于 2019-12-01 09:07:29
I'm trying to figure out how to retrieve the stream which a given view is belong to. When I use "ClearCase Explorer" and right-click for view's properties, I get its stream name, but I can't find how to retrieve that with scripts. The stream information does not appear on view .vws files nor registry. I know I can do some manipulation to get it from view's config-spec, but I'm still looking for the easiest way to find it our. By script: cleartool lsstream -view view_tag See cleartool lsstream man page : –vie/w view-tag Displays information for the stream connected to the specified view. 来源:

How to describe recommend baseline with pipeline

我的未来我决定 提交于 2019-12-01 09:01:40
问题 I am trying to find all the components baselines associated in a composite baseline. I am able to achieve it using following way cleartool desc -fmt %[rec_bls]CXp stream:My_Integration@\My_PVOB (I would save the receommended baselines in some variable using powershell and replace it in next command) cleartool describe -l baseline:"$Baseline"@\My_PVOB Is it possible to combine both command so that i can describe all the recommended baselines. In the above approach i am forced to use some

How to setup activity automatically for a view?

て烟熏妆下的殇ゞ 提交于 2019-12-01 08:56:38
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 share link or something useful resource.. Use cleartool setact to set your activity. setact/ivity [ –c

How to delete file elements by file extension in ClearCase?

て烟熏妆下的殇ゞ 提交于 2019-12-01 08:51:55
问题 I have tons of xxx.cmd files that sit in multiple folders (e.g. child1 , child2 , child3 , etc), they have a parent folder parent Is there a cleartool command that I can executes on the parent folder that deletes all the .cmd files in all children folders? 回答1: Not easily, because you need to checkout any parent directory including those files, before doing the cleartool rmname . The easiest would be to: Copy all your elements outside the view. remove all the *.cmd file (using any find

How to fetch history of elements using ClearCase CM API?

半城伤御伤魂 提交于 2019-12-01 08:42:07
问题 I want to fetch history of file elements like pdf files, doc files, etc. which are under clearcase control using Rational CM API which are provided by clearcase. I have written following code to fetch the history but it is incomplete so please help me out here. public void fetchFileElementHistory() { try { CcFile fetchElement = provider.ccFile(provider.filePathLocation(testFile)); // file under Clearcase control PropertyRequest wantedProps = new PropertyRequest(CcFile.DISPLAY_NAME, CcFile