cleartool

How to list only the name of the baselines in UCM ClearCase?

不羁的心 提交于 2019-12-04 16:37:04
If I do: cleartool lsbl -stream stream:mystream@\mypvob That will lists the baselines with details. But I want to list only the name of the baselines. Is there anyway I can do that? You can use the fmt_ccase options in order to format the result of a cleartool lsbl command . cleartool lsbl -fmt "%n\n" -stream stream:mystream@\mypvob Here two examples in python, found on snip2code.com 1) Get the foundation baseline of a stream import os working_stream = "myStream" pvob = "MyVobs" foundation_bl = os.popen("cleartool descr -fmt \"%[found_bls]CXp\" stream:" + working_stream + "@" + pvob).readlines

How to permanently change an UCM activity name?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 15:33:17
I wanted to re-name my activity name from cleartool command-line using the commands $ cleartool lsact 2016-04-14T17:10:17+05:30 foo_eg1 adam "foo_eg1" $ cleartool rename activity:foo_eg1@/vobs/fw-ucm activity:bar_eg1@/vobs/fw-ucm Renamed activity from "foo_eg1" to "bar_eg1". When I check for my activity name again:- $ cleartool lsact 2016-04-14T17:10:17+05:30 bar_eg1 adam "foo_eg1" I can see the older activity name still pointed here and from the below command too. $ ccase showact .. title: foo_eg1 .. Why is the older activity name still referenced here? Is there a way I can force change the

using SSH to run a cleartool command with agruments on remote a linux machine

和自甴很熟 提交于 2019-12-04 02:40:19
问题 when I run this then everything work: C:\PROGRA~1\cwRsync\bin\ssh.exe -o 'StrictHostKeyChecking no' 10.10.10.10 -l username /usr/atria/bin/cleartool setview -exec 'pwd' cm_myview however if I have more than two arguments after exec like this: C:\PROGRA~1\cwRsync\bin\ssh.exe -o 'StrictHostKeyChecking no' 10.10.10.10 -l username /usr/atria/bin/cleartool setview -exec 'cd /user' cm_myview then it will fail with the error: extra argument:"cm_myview" so right now if there is more than 2 argument

How to obtain Changeset of an activity?

☆樱花仙子☆ 提交于 2019-12-04 02:19:48
问题 We are able copy to clipboard changeset of our activities. But often we need to get changeset of our team member's activities. We are able to see it through GUI. but we would like to copy the list of changeset to some text file. Is it possible to get changeset using cleartool? I was trying with following command but still it fails V:\>cleartool lsactivity -l "PBI#503# to Model"\@My_PVOB This is the error i got : cleartool: Error: Unable to determine VOB for pathname "My_PVOB". V: is the drive

How to list all my check-ins using ClearCase?

六眼飞鱼酱① 提交于 2019-12-04 00:20:41
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. This would involved a cleartool find command with: an -exec directive to describe the versions found a -fmt to better format the result a -created_by query language operator to restrict the results to only your checkins versions. You can either display all versions of the checkins files, or only one file per all versions checked-in, that is the 'element'. In your

Clearcase Delete Directory

走远了吗. 提交于 2019-12-03 08:06:30
I have a directory structure like so: root_dir dir1 dir2 file1.txt file2.txt sub_dir file3.txt file4.txt What is the best way to delete dir2 and all it's sub-elements using rmname ? Can I simply do 'cleartool rmname dir2' and have it recursively delete all it's contents? You only need to: cleartool checkout -nc root_dir cleartool rmname dir2 cleartool checkin root_dir That remove the reference to dir2 in the new version of root_dir , making dir2 and all its content invisible (not reachable). And you can easily restore dir2 (and all its content) by merging the previous version of root_dir

How to add all the files in a folder to source control via cleartool command?

那年仲夏 提交于 2019-12-02 03:17:25
问题 I am having a folder where lot of files and subfolders , adding it to source control via UI is consuming much time. How to add all the files (including files inside subfolder) to source control using cleartool? (I am using clearcase UCM) 回答1: As mentioned in "How can I use ClearCase to “add to source control …” recursively?", clearfsimport is the way to go. However, clearfsimport will take a source an import it in your view, so: it is best to keep the source outside your view (to avoid

How to add all the files in a folder to source control via cleartool command?

谁说我不能喝 提交于 2019-12-02 02:10:14
I am having a folder where lot of files and subfolders , adding it to source control via UI is consuming much time. How to add all the files (including files inside subfolder) to source control using cleartool? (I am using clearcase UCM) VonC As mentioned in " How can I use ClearCase to “add to source control …” recursively? ", clearfsimport is the way to go. However, clearfsimport will take a source an import it in your view, so: it is best to keep the source outside your view (to avoid confusion when ClearCase tries to add the source file in the destination which is the same directory) you

using SSH to run a cleartool command with agruments on remote a linux machine

萝らか妹 提交于 2019-12-01 14:08:52
when I run this then everything work: C:\PROGRA~1\cwRsync\bin\ssh.exe -o 'StrictHostKeyChecking no' 10.10.10.10 -l username /usr/atria/bin/cleartool setview -exec 'pwd' cm_myview however if I have more than two arguments after exec like this: C:\PROGRA~1\cwRsync\bin\ssh.exe -o 'StrictHostKeyChecking no' 10.10.10.10 -l username /usr/atria/bin/cleartool setview -exec 'cd /user' cm_myview then it will fail with the error: extra argument:"cm_myview" so right now if there is more than 2 argument after -exec, then it will say those argument are extra, anyone know how I can fix this. Thanks. I am

How to obtain Changeset of an activity?

依然范特西╮ 提交于 2019-12-01 13:09:19
We are able copy to clipboard changeset of our activities. But often we need to get changeset of our team member's activities. We are able to see it through GUI. but we would like to copy the list of changeset to some text file. Is it possible to get changeset using cleartool? I was trying with following command but still it fails V:\>cleartool lsactivity -l "PBI#503# to Model"\@My_PVOB This is the error i got : cleartool: Error: Unable to determine VOB for pathname "My_PVOB". V: is the drive where my integration stream is mapped Tamir Gefen You should specify activity ID instead of activity