clearcase ucm基线之间的活动列表

时间:2012-02-13 07:44:31

标签: clearcase cleartool clearcase-ucm

如何以clearcase ucm?

获取文件中两个基线之间的活动列表

Cleartool diffbl -lsact -pred latestlable>> activities.txt是使用的命令。

2 个答案:

答案 0 :(得分:1)

不要忘记添加@\yourPVob,如cleartool list activities since last 7 days

所示
 cleartool diffbl -act -pred baseline:latestlable@\yourPVob

注意:在Unix上,这将是@/vobs/yourPVob 最好使用基线选择器语法(请参阅diffbl man):

  

baseline-selector的格式为:[baseline:]baseline-name[@vob-selector],vob是基线的UCM项目VOB。

答案 1 :(得分:0)

以下是snip2code.com

中的python示例
import os

bl_old="myOldBaseline@/MyVobs"
bl_new="myNewBaseline@/MyVobs"
myView = "MyView"

diff_act=os.popen("cleartool setview -exec \"cleartool diffbl -nmerge -activities "+bl_old+" "+ bl_new+" \" " +myView).readlines()

for act in diff_act:
   print ("ACTIVITY: "+str(act))

链接:How To Get The List Of All The Activities Comparing UCM baselines