It's all about the answers!

Ask a question

SCM API to find extra changes in Repository after baseline/snapshot?


vijayakumar ramesh (1173862) | asked Oct 04 '21, 9:34 a.m.
Use Case : Need to compare RWS with Stream for extra changes are there are notafter latest baseline. Which API should i be using from below.?

IChangeHistorySyncReport report = workSpaceconnection.compareTo(targetStreamSpaceconnection,   WorkspaceComparisonFlags.CHANGE_SET_COMPARISON_ONLY | WorkspaceComparisonFlags.INCLUDE_BASELINE_INFO, Collections.EMPTY_LIST,
                subMonitor.newChild(60));

report.API?

Accepted answer


permanent link
Shashikant Padur (4.3k27) | answered Oct 05 '21, 12:04 a.m.
JAZZ DEVELOPER

If you want to compare against a workspace/stream against a baseline, you can use IChangeHistorySyncReport compareToBaseline(IBaselineHandle baseline, IProgressMonitor monitor).

To compare a workspace/stream against a snapshot, you have to loop through the baselines in the snapshot and call the above mentioned api.

vijayakumar ramesh selected this answer as the correct answer

Comments
vijayakumar ramesh commented Oct 06 '21, 2:48 a.m.

Thank you Shashikant for answer.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.