1

I have an integration stream in ClearCase. I want to get a list with the names of all of its child streams that aren't marked as obsolete. Which command should I run?

neves
  • 33,186
  • 27
  • 159
  • 192

1 Answers1

2

A simple cleartool lsstream -tree myIntStream@\myPvob should be enough.
(Unix: cleartool lsstream -tree myIntStream@/vobs/myPvob)

As mentioned in cleartool lsstream:

Default

Lists only nonobsolete streams.

neves adds in the comments:

This also list all the activities of the stream. I think it is necessary to pass something the fmt option. I'd like just the name of the streams.

As I mention in "cleartool lsstream -tree get only list of child streams" (using fmt_ccase):

cleartool describe -fmt "%[dstreams]CXp" stream:myStream@\myPVob

The OP neves mentions in the comments having just the names with:

 cleartool describe -fmt "%[dstreams]p" stream:myStream@\myPVo
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • This also list all the activities of the stream. I think it is necessary to pass something the fmt option. I'd like just the name of the streams. – neves Aug 28 '14 at 16:28
  • @neves Ok, I have edited the answer with an alternative solution – VonC Aug 28 '14 at 17:21
  • I've got just the names with this comand: cleartool describe -fmt "%[dstreams]p" stream:myStream@\myPVob . I'll use it in Hudson to automatically build the active streams. – neves Aug 29 '14 at 22:25
  • @neves Indeed. I have included your command in the answer for ore visibility. – VonC Aug 29 '14 at 22:27