SCM API : How to compare 2 snapshots with changes in the components included in each Snapshot ?
Hello Team,
I have a usecase wherein I need to get the delta changesets that are part of 2 given snapshots. I am able to get only the changesets part of components existing in both the snapshots. If there is a newly added component, and part of one of these snapshots, then am not getting the changeset as delta.
E.g :
Stream : stream1 :
Components : comp1, comp2
Snapshot 1
Then I add comp3 to the stream1 and deliver some changes and create a new snapshot : Snapshot2.
Then when i see the diff changesets between Snapshot 1 and Snapshot 2, I dont get to see this details of the newly added component.
Below is the code:
IWorkspaceManager workspaceManager = SCMPlatform.getWorkspaceManager(teamRepository);
IChangeHistorySyncReport changeSync = workspaceManager.compareBaselineSets(snapshot,snapshotParent,null, null);
for (final Object currentEntry : changeSync.outgoingChangeSets()) {
IChangeSetHandle csHandle = (IChangeSetHandle) currentEntry;
foundCS.add(csHandle);
}
when checked in the compareBaselineSets() API documentation, it states : Compares two baseline sets. For components which are common, it will breakdown the change sets into incoming and outgoing.
Is there any other API, which gets the changesets of the newly added component, part of one snapshot and other as well ?
Request you to assist on this.
Thank you.
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Nov 24 '17, 8:54 a.m.1 vote
Jazzuser user
Nov 26 '17, 11:19 p.m.Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Nov 27 '17, 5:57 a.m.1 vote
Jazzuser user
Nov 27 '17, 6:39 a.m.Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Nov 27 '17, 8:05 a.m.