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

How to compare two base lines with rtc java api?

Hi @all,

how can I compare two base lines (IBaseline) not base line sets (IBaselineSet) with the rtc java plain api?

Unfortunately the IWorkspaceManager takes only IBaselineSet (Snapshots) but no IBaseline (base lines)
So how can i get the change set history (IChangeHistorySyncReport)?

IChangeHistorySyncReport changeReport = workspaceManager.compareBaselineSets(baselineSets1, baselineSets2, null, null);

This code snipped works only for snapshots not for base lines

0 votes


Accepted answer

Permanent link

Use the following:

IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repo);
IBaselineConnection bc = wm.getBasellineConnection(baselineHandle, monitor);
IChangeHistorySyncReport report = bc.compareTo(otherBaseline, monitor);

Stefan Sauterleute selected this answer as the correct answer

1 vote

Comments

 Thanks, that works fine!

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,938
× 411
× 169
× 89

Question asked: Feb 09 '18, 4:06 a.m.

Question was seen: 3,203 times

Last updated: Aug 03 '23, 2:19 a.m.

Confirmation Cancel Confirm