How to find out the change set belongs to which baseline using plain java api?
Accepted answer
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.
Comments
Thanks @David Lafreniere
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.