How to retrieve the list of files modified across base lines in clear case

假装没事ソ 提交于 2019-11-26 23:33:07

问题


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:


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):

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.



来源:https://stackoverflow.com/questions/10527550/how-to-retrieve-the-list-of-files-modified-across-base-lines-in-clear-case

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!