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

compare component with baseline using Java client API

 Hi All, 
I want to compare component with baseline using java client API,
Below are API I know to compare component with baseline

IChangeHistory compHistory = IWorkspaceConnection.changeHistory(componentHandle);

IBaselineConnection latestBaselineFromTarget = workspaceManager.getBaselineConnection(baselineHandle, null);

IChangeHistory baselineHistory = latestBaselineFromTarget.changeHistory();

IChangeHistorySyncReport report = compHistory.compareChangeHistories(baselineHistory, null);

changeSetsHandles.addAll(report.outgoingChangeSets());
changeSetsHandles.addAll(report.incomingChangeSets());

Here I can get change sets, but I am getting more change sets than what is displayed in change explorer view of eclipse (when component is compared with baseline via eclipse).

Is there any other API to compare component with baseline.
Please let me know

Thanks in advance
Vikrant

0 votes



One answer

Permanent link
 Hi All,

Below solution worked for me
IWorkspaceConnection.compareToBaseline(BaselineHandle, monitor);

As per my understanding, This method will compare baseline with its associated component

1 vote

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
× 84

Question asked: May 31 '16, 5:05 a.m.

Question was seen: 3,179 times

Last updated: Jun 01 '16, 1:41 a.m.

Confirmation Cancel Confirm