Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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));

report.API?

0 votes


Accepted answer

Permanent link

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

0 votes

Comments

Thank you Shashikant for answer.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,934
× 7,494
× 1,700
× 1,323

Question asked: Oct 04 '21, 9:34 a.m.

Question was seen: 1,008 times

Last updated: Oct 06 '21, 2:48 a.m.

Confirmation Cancel Confirm