SCM API to find extra changes in Repository after baseline/snapshot?
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));
subMonitor.newChild(60));
report.API?
Accepted answer
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.