cleartool

Any way to use a custom diff tool with cleartool/clearcase?

I'd like to use my own diff when working in a clearcase snapshot view. As far as I can see, there is no way to specify a diff tool when running "cleartool diff", so I was thinking I could run something like "mydiff <predecessor file> <modified file in my view>", but I don't know enough about clearcase to be able to find the "predecessor...

How to list all my check-ins using ClearCase?

Is it possible to get a list of all the check-ins I've made within a given source code directory tree using cleartool? If possible I'd like to see when the check-in was made and the file version. I'm using Windows. Thanks in advance. ...

ClearCase: Find files having exactly one specific label and not more

Hi everyone, I'd like to find files in ClearCase that are labeled with a specific label but that do not have any other labels set. For example, if I have files labeled like this: file1 LBL_A, LBL_B file2 LBL_A I'd like to have a query that gives me just file2 and not file1. Is there a way to do this with cleartool find? If this is ...

Proper 'cleartool mkview' for ClearCase Snapshot view creation

Good afternoon, seems like I am somewhat stuck in CC-land these days, but I have one (hopefully) final question regarding proper CC-handling: When using the CC View Creation Wizard with the two steps / details below, I can create a proper Snapshot view on my machine perfectly fine, however when trying to do the same with the mkview com...

ClearCase dynamic view contents not visible to ASP.NET web application

I am running an asp.net application (VS2008/.net 3.5) and when running it under VS in debug more it works fine. It reads files and directories from a network share happily. I can run "cleartool startview [dynamic view name]" ok, I can "cleartool mount [vob]" happily. But if I try to test for the existance of a file within the vob it c...

Clearcase list of files in a label

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 l...

cleartool protect -chmod 770 <vob-tag-name> ERROR

This command does not work: cleartool protect -chmod 770 <vob-tag-name> i get the following error: cleartool> protect -chmod 770 vob-tag-name cleartool: Error: Unable to access "vob-tag-name": ClearCase object not found. The VOB tag is valid and points to the correct VOB location. What am I doing wrong? HELP! Thank you! ...

How to get cleartool diff to return to command line while diff viewer is still open?

As described in one of the answers to SO question "Any way to use a custom diff tool with cleartool/clearcase?" I have installed WinMerge and a single diff opens fine in WinMerge based on a command of the form cleartool diff -g filename filename@@clearcase-virtual-path-to-version-I-want-to_compare-to But when I run that command in cygw...

How to make check-outs be unreserved by default using ClearCase command line tools.

Is there a way to make cleartool checkouts unreserved by default? Perhaps a ~/.cleartool file or some environment variable? I understand the default can be set on the VOB (or all VOBs), but that option is beyond my control. The ClearCase version I'm using is: $ ct -version ClearCase version 7.0.1 (Wed May 30 17:04:58 EDT 2007) 7.0....

cleartool question

Lets say I have a directory at \testfolder, and the latest is currently at /main/10. I know that the operation resulting in testfolder@@/main/6 is to remove a file named test.txt. What's a sequence of cleartool operations that can be done in a script that will take "testfolder@@/main/6" and "test.txt" as input, and will cat out the con...

How to find all checkedout files with ClearCase cleartool?

I'm trying to setup our ClearCase with Hudson for a continuous integration (and deployment later). I finally got a UCM view for the build, but unfortunatly our build process checks out files to store the build number. Now the build broke and the file is still checked out, preventing the next build. I already now about cleartool find . ...

ClearCase: How to find files which was not labelled as "Label_Name" on CURRENT Version filtered by config spec

For example, the current config spec is "element * /main/LAETST". there is a file -"A.txt", current version is 3 and a label named "LB" was applied on its version 2 before. I wanna a cmd to query all files which do not apply label "LB" on its current version. Obviously, file "A.txt" should meet the query. How to write the clearcase cm...

clearcase: find -name not allow multiple patterns?

I wanna find *.cs and *.cpp files through cleartool find command. But it failed. cleartool find "M:\test_view\code" -name "*.cs *.cpp" -print Nothing can be found based on above even there are matched files in that folder. How to set multiple file-name patterns ? ...

Code Review - Clearcase - How to get a list of files a user modified since another label?

Hi all, I'd like to create a dynamic view that only shows the files a user created/modified for a particular label. Right now, I am listing all of the files in the label and comparing that with the previous label. If I have to use cleartool to find the files, that is fine with me. I'd like the process to be more automated than it cur...

Clearcase "pname" for a VOB

I'm trying to change the ownership on a VOB, and I see that the cleartool protect command has a chown option. It's asking for a pname, and I can't seem to find documentation on what a pname is or how to specify one. I guess my questions boil down to: What's a pname? What's its format? How do I specify the pname for a VOB? Is there d...

Clearcase: How to know the labels which were applied on the target of a symbolic link

If a file A is not symbolic link, we can use describe to get the labels which were applied on its current version. But if it is symbolic link, we can just use describe to get a relative path of the target file. Is there any easy way to list the labels of the target of a symbolic link? ...

How to checkout files from the command line and show UCM new activity GUI if neccessary

I want to checkout some files from a batch script, but since we use UCM checking out files needs to be associated with an activity. Is there an easy way to show the GUI for creating/selecting an activity to associate the checkout with? ...

Is "re-cycling" a ClearCase dynamic view without side-effects, and if not, how to rename view?

One of the shops I'm working at relies on dynamic views in ClearCase. The established norm has been to create a new view for each project effort. Over time I've found that I've only needed to have one or two views concurrently active. I've taken to "reusing" a view by changing the config spec (subsequent to check-in, label, release, ...

clearcase: Backup for only modified checked-out elements in all views.

Hi all, Having a regular size-efficient backup for only the modified checkedout elements in all views would be a great thing for us, since a great deal of the defined dynamic/snapshot views cannot be included in the daily backup policy. The following ksh code is near to what we would need for a dynamic view, but it trivially assumes tha...

Config spec of the clearcase vi

Hi , I would like to know if below my need is possible in clearcase : Say , I have 15 different views (Dynamic or Snapshot) created (from different users/developers), I want get the "config spec" using some kind of cleartool command (Without having to right click on the view and select the configspec from windows context menu). Finall...