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

Show baseline and changeset with API Client

 Hi,

 I try to develop with the API client RTC a tool to have all changeset and baselines from one Stream (i have one component with two stream).


workspaceManager.findBaselines(criteres, Integer.MAX_VALUE, monitor); => return all baselines of two stream


IHistoricBaselineIterator it = workspaceConnection.getMergedBaselineHistory(composant, Integer.MAX_VALUE, monitor); 
=> return only a part of my baselines with two occurs of each baseline.

What 's simple solution to retrieve all baselines of one stream ?

Thanks.

Philippe





0 votes



One answer

Permanent link
 Hi,

 Finally, i found this :

IHistoricBaselineIterator ith = workspaceConnection.getBaselinesInHistory(composant, 50, monitor);
List<IBaselineHandle> baselines = new ArrayList<IBaselineHandle>();
baselines.addAll(ith.getBaselines());
 while (ith.hasPrevious()) {
 ith = ith.getPrevious(50, monitor); 
 baselines.addAll(ith.getBaselines());
}

I don't know, if exist best solution ?

0 votes

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,937
× 1

Question asked: Jul 15 '15, 11:26 a.m.

Question was seen: 3,632 times

Last updated: Jul 17 '15, 7:52 a.m.

Confirmation Cancel Confirm