It's all about the answers!

Ask a question

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


vijayakumar ramesh (1171953) | asked Oct 04, 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.2k27) | answered Oct 05, 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, 2:48 a.m.

Thank you Shashikant for answer.

Your answer


Register or to post your answer.