by
0
8
530k
10
Top 1% !
Popular
Famous
Pearl of Wisdom
Tagged
Easy-to-find
Specified
OpenSource
Popularity: 1251st place
Created
Modified Oct 17, 2013
Architecturex86_64
LanguagePython
LicenseMIT_X11
OSLinux

How to get the list of all the activities comparing two UCM streams in python

This script shows how to get the list of all the activities comparing two ucm streams.

The command returns a list object you can easily loop and print.
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/11389/How-to-get-the-list-of-all-the-activitie?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
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))
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus