How to get the foundation baseline of a given UCM stream

This python script will detect the foundation baseline of a given Clearcase UCM stream.
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
import os working_stream = "myStream" pvob = "MyVobs" foundation_bl = os.popen("cleartool descr -fmt \"%[found_bls]CXp\" stream:" + working_stream + "@" + pvob).readlines()[0].split(":")[1].split("@")[0] print "Found Foundation baseline = " + str(foundation_bl)
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus