RTC SCM Client : Addition/deletion of Components not shown properly in the Snapshots Comparisions.
Hello All,
I tried a usecase wherein I added a component to a stream and delivered few Changesets, created Snapshot.
then Right Click on Stream --> Show Snapshots --> Select this created snapshot with latter one --> Compare with --> each Other.
Here for the addition of component, I should get a "+" symbol, instead getting " - " symbol. Is this an issue ? am not sure about this.
Also I am trying to do the same in my code as well, using SCM APIs,posted a question for the same : https://jazz.net/forum/questions/247224/scm-api-how-to-compare-2-snapshots-with-changes-in-the-components-included-in-each-snapshot
I am not getting the changesets part of newly added component, as the changeset diff.
Please advice.
One answer
When you compare two snapshots (or two workspaces/streams), the Change Explorer is shown [in Eclipse and VS], and if a component exists in one and not the other, we report this is a 'component addition' or 'component removal'. The '+' decorator means an component addition, and the '-' means a component removal. Prior to RTC 6.0.5 these decorators might get a little confusing/ambiguous because an 'outgoing component addition' is the same as an 'incoming component removal' and an 'outgoing component removal' is the same as an 'incoming component addition'.
This 'decorator' situation has been made more clear in RTC 6.0.5 in the following work items:
The component addition/deletion ("+" / "-") decorator signs in the Change Explorer view are reversed (432188)
Component 'Additions' and 'Removals' are not consistent/confusing in the Change Explorer and Change Summary Log (430943)
Note: We still only show the 'component' node without the ability to expand it to show change sets. Such a node implies that the entire 'history' of the component is missing from the snapshot that does 'not' have the component. I.e. if a component had a history of 1 million change sets, we would not want the ability to expand that component to show the full history (1 million change sets) in the Change Explorer view (due to performance/scalability reasons). If the user does want to see the history of that component though (i.e. all the change sets), they are expected to use the History view (i.e. right-click on the component in the snapshot that has the component, and select 'Show' --> 'History').