I have two dynamic views in ClearCase which, as far as I know, are supposed to be “equal”.
One is supposed to look at the “Main branch” and one at some other branch (let’s call it A).
I did a merge from A to Main (in the Main view) and for some reason the code at the A view compiles while Main does not.
Is there a way to compare the views for differences?
The simplest way is to use an external diff tool on those two views (like WinMerge or BeyondCompare on Windows, KDiff3 on Unix or Windows, …).
I would actually create two new views (with the same config spec than the two initial views), to remove any “cache” effect, and start the comparison there.
Once that initial examen is done, I would start the compilation in those two views, and see if one of them still don’t compile.
Don’t forget that merging
AtoMainwill not always result in the same set of files after the Merge.It would be the same only if no evolution has taken place in Main since
Astarted (or since the last merge fromAtoMain).The
setcs -currentyou mention will:If you depend within your config spec on an “include file” which was at the wrong version, the first setcs would set it at the right version, and the second one would read its content and set the right version for the rest.