How to retrieve the list of files modified across

2020-02-01 17:15发布

I need to retrieve a list of all the files that have been checked-in across baselines along with the owner name. I tried using the cleartool lsact command :

However, this command fetches just for one task and is a bit cumbersome to use. Is there a command which will retrieve all the tasks if I specify two baselines?

Thanks

1条回答
Anthone
2楼-- · 2020-02-01 17:36

A command like:

 cleartool diffbl -act bl1@\apvob bl2@\apvob

will give you the list of activities which have new versions between baselines bl1 and bl2.

However, to get the list of files (ie elements, as in files or directories, and not versions as in all the updated versions even for a same file), the best way is to:

  • ensure those baselines are "full" baseline: promote them to full if needed:
    cleartool chbl -full bl1@\apvob
    cleartool chbl -full bl2@\apvob

(if they were already full, this command won't do anything)

  • list all elements which have the bl1 and bl2 labels on different versions:
cleartool find -all -element '{lbtype_sub(REL1) && lbtype_sub(REL2)}' ^ 
  -version '{(lbtype(REL1) && ! lbtype(REL2)) || ^
  (lbtype(REL2) && !lbtype(REL1))}' -print 

See "Find changes between labels".
Note that this last question also mentions the "report builder packaged with ClearCase, which is interesting if you are after a solution involving a GUI and not a CLI (command line):

report builder

Again, if those baselines are full, you can use it to list (under Elements/Labels) either "Elements Changed Between Two Labels" or "Versions Changed Between Two Labels" depending on which you need.

查看更多
登录 后发表回答