by

How to list files changed in clearcase ucm stream activities

This script lists the files changed in all the activities delivered on a specific stream, with no duplicates. The stream is the one currently set on the clearcase view.
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/961/How-to-list-files-changed-in-clearcase-u?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
#!/usr/bin/tcsh -f # This script lists the activities of a stream and saves on the following file the changed files without duplicates. set tmpoutput = "$HOME/.tmp_AllChangedFilesInStream.txt" set output = "$HOME/AllChangedFilesInStream.txt" rm -rf $tmpoutput touch $tmpoutput rm -rf $output touch $output foreach act ( `cleartool lsact -s | grep -v rebase` ) set changeset = `cleartool lsact -fmt "%[versions]p" $act` echo $changeset | tr ' ' '\n' >> $tmpoutput end foreach line ( "`cat $tmpoutput`" ) set file=`echo $line | sed -e "s|\(.*\)@@.*|\1|"` set isPresent = `grep "$file" "$output"` if ("$isPresent" == "") then echo $file >> $output endif end rm -rf $tmpoutput exit 0
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus