tags:

views:

182

answers:

2

Is there a way to find out the checkin history of a user in a stream?

I know that i can get the history by looking at all the activities in a stream. But the change set in an activity doesnt show the date the file is checkedin.

Thanks for the help!

+1  A: 

The changeset of an activity can show the date of the files. You just need to combine your describe command with a fmt_ccase format instruction.

cleartool describe -fmt "%[versions]CQp\n" activity:myActivity@/pvobName

For each of the output:

cleartool describe -fmt "%u %n %d" aFile@@/main/branches/x

Note: On Windows, you can list all the activities for a given user.
First, go into a UCM view associated with the relevant stream. Then:

for /f  %x in ('cleartool lsact -cview -fmt "%Xn %u\n" ^| findstr "username"') 
  do cleartool desc -fmt "%[versions]CQp\n" %x 

You can also script this in Perl (which would then be portable, both on Windows and Unix).
See SO question "How can I interact with ClearCase from Perl?"

VonC
A: 

Naveen, if you prefer the GUI approach, you can try the following ClearCase plug-in: http://gomidjets.com/compbl

It enables you to compare streams and baselines and get the result as a report, including history and more.

Tamir Gefen