zedoo
zedoo

Reputation: 11277

clearcase: show recently changed files

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?

Upvotes: 1

Views: 2330

Answers (1)

VonC
VonC

Reputation: 1323673

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.

Upvotes: 2

Related Questions