1

How to get only latest versions from latest baseline -

For example, First time in ClearCase, developers check in for the first time, we would have a.zip, b.zip ; ClearCase does the incremental baseline baseline_1. Then the build tool comes in, does it gets artifact..and deploy it - everything looks good.

Second time in ClearCase, they check in c.zip and d.zip ; ClearCase does an incremental baseline again baseline_2... now how can I get the ClearCase snapshot view to only present the new files (c.zip and d.zip) so the buil tool can only get the latest files (or last baseline)

This will go on and on and on.. so baseline will change each time.. so would the file.... and the date will not work since we don;t know the schedule or cycle. The files name can also change from *.zip to whatever...

FFIC_UCM
  • 11
  • 2

1 Answers1

0

A baseline references all the files of a component, even if it is incremental.

Using an incremental baseline in a non-UCM snapshot view wouldn't work, because it applies a label only on the elements which are changing (which means the parent directories might not have that label, because they haven't changed, which results in a config spec incapable of selecting the changed files, since said parent directory isn't even selected).

If you are after a view able to show all the latest files, what you can do is:

But you also can:

  • list only the changed/new files:
    cleartool diffbl -pred -ver latestBl@\aPVob
  • access those files through a dynamic view with the extended pathnames returned by the diffbl -pred -ver command.

That would allow to list/access only the new/changed versions between 'latestBl' and its previous baseline (with latestBl obtained from the lsbl command shown above).

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thank you... just for clarification, the snapshot view is base UCM snapshot view. I need to do this in an "automate" fashion (ie, this will be driven by another tool that only wants to pick up the last changes files from the last baseline). Can you suggest a way to do this without having to manually enter the previous baseline name.. and then able to pick up only the changes files to copy to another directory? Much appreciate ! – FFIC_UCM May 16 '13 at 16:13
  • @FFIC_UCM you don't have to enter the previous baseline name: that is what the option `-pred` is for. You will get only the new or changed files. – VonC May 16 '13 at 16:45