It's all about the answers!

Ask a question

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

vijayakumar ramesh (1173660) | 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,


Accepted answer

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

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

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

Thank you Shashikant for answer.

Your answer

Register or to post your answer.