I want to know all files that changed between 2 baselines. I need to have a list in text. Through the interface I need to enter in each activity of baseline. In this dialog, I list the files, but can't copy the names to a text editor.
Asked
Active
Viewed 1,886 times
1 Answers
2
The normal command is:
cleartool diffbl -ver baseline1@\apvob baseline2@\apvob
But be aware it will list all the versions changed between the two baselines, not just the elements (files or directory).
That means a file could be listed multiple times, because multiple versions of said files have changed between the two baselines.
That old thread mentions a potential solution (not tested) in order to list the elements (files or directories) only once.
my %elem = map {
tr|\\|/|; # Convert slashes to unix style.
s|^<< M:/^/+/^/+/||; # Drop view tag and vob tag.
s|\@\@.*||; # Drop branch and version id.
$_ => 1; # Pick up the path.
} qx(cleartool diffbl -version -first $laterbl $olderbl);
print sort keys %elem;
The OP neves confirms that this idea works, with:
cleartool diffbl -ver baseline_abc.123@\\MYVOB baseline_abc.358@\\MYVOB | \
awk -F '\\' '{print $8}' |grep @@|sort| uniq|sed 's/@@//'
-
Thanks! It worked fine. Another simple thing that is hard in ClearCase. Here is my bash script to get just the filenames: cleartool diffbl -ver baseline_abc.123@\\MYVOB baseline_abc.358@\\MYVOB |awk -F '\\' '{print $8}' |grep @@|sort| uniq|sed 's/@@//' – neves Jul 09 '13 at 22:50
-
@neves Excellent. I have included your one-liner command in the answer for more visibility. – VonC Jul 10 '13 at 11:18