Search code examples
automationclearcaseclearcase-ucm

Find activity created TODAY in clearcase UCM


I am looking for a way to list all activities created on a specific date lets say TODAY in clearcase UCM. One way I can think of achieving this is by lsactivity -fmt "%n %Ad /n" and then parsing the output using a batch/ant script to extract the lines for that date. But is there a nifty combination of lsactivity+fmt+find+query which can help me achieve this in one cleartool command ?


Solution

  • Not that I know of.
    Regarding activities, there is no combination of lsactivity and find directly available.

    activity

    And you need to remember that there is no relationship between the date of the (creation of the) activity, and the dates of the versions stored in its changeset.
    An activity created today can contain versions created 3 weeks ago.

    Finally, when you list all activities, that can be very long: filtering per stream is better.

    cleartool lsactivity -in stream:aStream@\aPVob -fmt "%n %Ad /n"