clearcase

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

孤街醉人 提交于 2019-12-01 06:53:52
问题 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. 回答1: By script: cleartool lsstream -view view_tag See cleartool

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

痴心易碎 提交于 2019-12-01 06:51:54
问题 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

Find merge arrows pointing to a version in ClearCase

好久不见. 提交于 2019-12-01 06:46:11
问题 I want to find all the merge arrows pointing to a certain version in a script. When I describe the version of the element with the following command: ct describe filename@@/main/some_branch/3 I get in the result the following: Hyperlinks: Merge <- filename@@/main/other_branch/2 I want ct describe to output only the relevant information to be used in my script, ie. the versions where the merge arrows come from. In my case, the output should look simply like this: filename@@/main/other_branch/2

ClearCase list of files with given label type applied

落爺英雄遲暮 提交于 2019-12-01 06:36:05
We currently use clearcase on a project, and there is an HTML file that was generated with clearcase that contains all of the filenames of the files that were included in a label. I am supposed to generate this file with a different label. I know how to get all of the filenames that were included in a label using the cleartool command line, but that doesn't help me with generating the file. I don't want to manually take that list and create the HTML file. So, how do I create this file? I currently do not have a copy of the HTML file, but I have seen it. Hopefully this question isn't too

ClearCase hijack functionality in subversion

你说的曾经没有我的故事 提交于 2019-12-01 06:32:23
Is there a way to "hijack" a file in subversion like there is in ClearCase. Googling so far has not given me a definitive answer. For non ClearCase users Hijacking a file means temporarily removing it from version control. SVN operates on a "copy-modify-merge" model, meaning it's always possible to make local modifications to your working copy, without needing to "lock" or "hijack" it. http://svnbook.red-bean.com/en/1.2/svn.basic.vsn-models.html#svn.basic.vsn-models.copy-merge.sb-1 VonC ClearCase has an odd mix of optimistic lock and pessimistic lock . But hijacking a file (for snapshot view)

Clearcase: List labels matching a particular string

橙三吉。 提交于 2019-12-01 05:47:28
问题 I would like to list the available labels matching a particular string applied in the view. 回答1: I confirm a filter in cleartool find is not possible: ct find . -ele "lbtype_sub(My_LAB*)" -print would not work (no wildcard in query argument. If you cannot use a grep in a shell pipe, can you consider using grep in an exec part of a find, like in this example? ct find . -kind lbtype -exec "echo %CLEARCASE_PN%|grep MY_LAB" If this is not acceptable, you need to write the result in a file and

tracking daily changes, as a peon, in a clearcase shop

泄露秘密 提交于 2019-12-01 05:46:13
问题 I am struggling with a perceived conflict between tracking all my changes so I can figure out where I broke the code yesterday, and having a controlled (high overhead) code review process that keeps things sane. I work in a very traditional ClearCase shop. All checkins require code review and I lack the authority to create private branches. In order to satisfy a primal urge for version controlling all my daily work I use mercurial from with in the clearcase view this only sort of works I seek

Searching ClearCase for a checkin with a specific comment

ε祈祈猫儿з 提交于 2019-12-01 04:19:20
I've been asked to provide details of a checkin I did about 3 months ago into ClearCase. I know the QC number that was included in the comment but have so far failed utterly to find a way to search ClearCase for a checkin by comment. Any ideas? Have you looked at this ? Specifically the section below. How to find elements and versions with specific comments I want to find all elements/versions with specific comments like “Jane changed this on 11-26” M:\my_base_view\my_base_vob>cleartool find -all -exec "cleartool lshistory -minor -fmt \"%n\t%c\n\" \"%CLEARCASE_XPN%\"" >c:\output.txt **This

How to recover a file from “Checkout but removed” state?

一个人想着一个人 提交于 2019-12-01 03:58:05
I was trying to checkout a file and it went it to "Checkout but removed" state. I am not able to undocheckout it and have no clue what needs to be done next. When i surf through net for this I found an article IBM site Checkout But removed state But i did not try to rename the file name as mentioned in the article still gets the error. I am using Clearcase 7.0.1.0 version. Please help to solve this issue. You should be to undo checkout through the GUI: find checkout select the checkedout file and right-click: undo checkout Even if that file is not visible on the disk, the "Find checkout" GUI

ClearCase list of files with given label type applied

空扰寡人 提交于 2019-12-01 03:02:41
问题 We currently use clearcase on a project, and there is an HTML file that was generated with clearcase that contains all of the filenames of the files that were included in a label. I am supposed to generate this file with a different label. I know how to get all of the filenames that were included in a label using the cleartool command line, but that doesn't help me with generating the file. I don't want to manually take that list and create the HTML file. So, how do I create this file? I