Cleartool command to list all files part of a chan

2019-05-30 14:53发布

问题:

I have a requirement where I want to use Cleartool and 1. I would like to pass a chageset number to Clearcase server and would like to see all files that would be part of that Changeset 2. Pass these file names to Clearcase server and copy the latest version of the files onto my local machine.

Is there a way to achieve this functionality using cleartool?

Can someone please suggest the commands with the necessary parameters that needs to be passed?

Thanks in advance.

回答1:

With ClearCase UCM, the "changeset" is part of an UCM activity

To see the content (ie the list of versions modified) in an activity, you can do a:

cleartool descr -l activity:myActivity@\myPvob

If the naming convention for your activities names is a "number", then "myActivity" would be "aNumber".

For getting the latest version, it is best to:

  • know what Stream that activity has been created (through fmt_ccase):

    cleartool descr -fmt "%[stream]Xp" activity:myActivity@\myPVob
    
  • and then modify the config spec of a dynamic view

    element * .../myStream/LATEST