Tamir Gefen on ALM

Archive for July 2008

As CM manager, I dealt with IBM Rational ClearCase projects in which the users could deliver from a child stream into another child stream (in the same project or not).
Sometimes, I was asked about the following situation, as I pictured here in the chart: (Yeah, I pictured it by myself!)
A delivery from stream A to stream B has started but has not completed yet.
Meanwhile, a user that works on stream B would like to start delivery from stream B to stream C. When he starts the delivery, ClearCase notifies him that he is in the middle of a delivery, but since stream B is the target stream, ClearCase does not inform about the source stream (try this – if you run “cleartool deliver -status” from the destination view, ClearCase tells you the following: “No deliver operation in progress on stream”.Delivery Chart

So how can I know the source stream?
If the user is part of a small group, he can just shout this question out in the open-space, and then someone might shout in response, hopefully.

But what if there are dozens of streams, or if the user is part of an international group? Email is a typical answer, but he can wait hours until he gets a response.

Here I show a simple command line example that can find the source stream in a short while:

Windows OS – open the command line and run the following:

cleartool lsstream -short -in PROJECTNAME@PVOB > c:\streams.txt & for /f %i in (c:\streams.txt) do cleartool deliver -status -stream %i@PVOB

UNIX or Linux OS – run the following:

foreach line (`/usr/atria/bin/cleartool lsstream -short -in PROJECTNAME@PVOB`) ;
    /usr/atria/bin/cleartool deliver -status -stream $line@PVOB

(The unix example intended to csh environment. You have to make some minor changes for other shell environments).

How it technically works:
It generates a list that contains all project streams, and check the delivery status for each one of them.



Term of use

Disclaimer of Warranties: The Website is provided “as is”. Automattic and its suppliers and licensors hereby disclaim all warranties of any kind, express or implied, including, without limitation, the warranties of merchantability, fitness for a particular purpose and non-infringement. Neither Automattic nor its suppliers and licensors, makes any warranty that the Website will be error free or that access thereto will be continuous or uninterrupted. If you’re actually reading this, here’s a treat. You understand that you download from, or otherwise obtain content or services through, the Website at your own discretion and risk.

GoMidjets Twitter

Error: Twitter did not respond. Please wait a few minutes and refresh this page.