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

How to find out the change set belongs to which baseline using plain java api?

 Hi all,


How to know change set belongs to which baseline, or how to check baseline has any change set associated with it?

0 votes


Accepted answer

Permanent link
The serverside API is: IScmQueryService.findLocateChangeSets(...)
The clientside API is: IWorkspaceManager.locateChangeSets(...)
The passed in param of 'ILocateChangeSetsSearchCriteria' lets you provide the change sets and baselines.
Andrew Ciaz selected this answer as the correct answer

0 votes

Comments

 Hi  @David Lafreniere  ILocateChangeSetSearchResult.getBaselines() returns all the baselines i .e if my Baseline1 contains changeset change1  and baseline2 is empty i.e no changeset and both baselines are associated with same component then my serach result shows that change1 is present in Base1 and Base2 also. Is this defect in API or I am wrong

What led you to conclude that baseline2 is empty?   In particular, if you said "show history" on baseline2, is the result an empty list?

I expect that you are looking at the Pending Changes view, which doesn't tell you what change sets are in the baseline, but rather tells you what change sets are in the baseline that are not in the previous baseline in the baseline history. 

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

Question asked: Jun 12 '19, 6:15 a.m.

Question was seen: 1,689 times

Last updated: Jun 18 '19, 9:08 a.m.

Confirmation Cancel Confirm