Is there a clearcase command to show me say all the files and the respective committers/activities that have changed in the last X hours/days? Something similar to svn/git/hg log?
Asked
Active
Viewed 2,250 times
1 Answers
2
Not directly, because ClearCase is file-centric, not repository centric.
So you can make your query for a component or a Stream (list of components+baselines).
For instance, to list all activities for a given stream, you can type (using the fmt
option of lsact
):
cleartool lsact -fmt "%n %d" -in aStream@\aPVob -user auser
But then, you need to filter on the date to get only the activities you want, and you can the describe each activities in order to get their changeset.
For the files, you can use a find query similar to "Find files in Clearcase view newer than a specific date?":
cleartool find <vobtag> -element "{created_since(target-data-time)}" -print
cleartool find <vobtag> -element "{created_since(target-data-time)}" -exec "cleartool desc -fmt \"%n %u %[activity]p\" \"%CLEARCASE_XPN%\""
Using -fmt
options, you can display the user for that version, and the activity whose change set contains the specified version.
-
Well, I guess I´ll accept your answer. It just fits well into the general impression I got about Clearcase. It all sounds pretty useless to me, unless your project has less than 3 files.. But that´s not your fault :) – zedoo Feb 04 '12 at 17:52
-
@zedoo I completely agree with your general impression. ClearCase doesn't scale well. – VonC Feb 04 '12 at 18:31