如何在清楚的情况下检索跨基线修改的文件列表 [英] How to retrieve the list of files modified across base lines in clear case

查看:90
本文介绍了如何在清楚的情况下检索跨基线修改的文件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检索所有已跨基线签入的文件的列表以及所有者名称。我尝试使用cleartool lsact命令:

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?

谢谢

推荐答案

这样的命令:

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

将为您提供在基线bl1和bl2之间具有新版本的活动列表。

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:


  • 确保这些基准是完整基准:如果需要,可以将它们升级为完整版本:


    cleartool chbl -full bl1@\apvob
    cleartool chbl -full bl2@\apvob

(如果它们已满,则此命令将不执行任何操作)

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


  • 列出所有具有 bl1 bl2 在不同版本上的标签:

  • 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 

请参见 查找标签之间的更改

请注意,最后一个问题也提到了与ClearCase打包在一起的报告生成器,如果您正在寻找一个涉及GUI而不是CLI(命令行)的解决方案,这将很有趣:

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

同样,如果这些基准已满,您可以使用它列出(在 Elements / Labels 下) 在两个标签之间更改的元素版本在两个标签之间进行了更改,具体取决于您所需要的。

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.

这篇关于如何在清楚的情况下检索跨基线修改的文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆