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

How to retrieve change-set contained into a baseline

Hi,
I was trying to find a method (on server side) to catch all the change-set that belongs to a baseline. I was looking for some kind of get method of IBaseline object but I have not found nothing about it.
Then I've looking on ISCMService but I've find only a method to find out if a change-set belongs to a baseline.

Can someone tell me a method to get this information?
Thanks in advance,
Michele.

0 votes



3 answers

Permanent link
Does anyone know this information?? How is it done in RTC when I explore a baseline??

0 votes


Permanent link
I have tried to use IScmService.activeChangeSet and activeChangeSetByComponent to get all the change-set in order to pass it to IScmService.ChangeSetsInBaseline, but I always obtain an empty array, while I'm having a baseline with a single change-set.

Currently I'm passing SyncTimes set to null. Do I have to change this param? And what can I use on it?

0 votes


Permanent link
It seems that the two methods activeChangeSet referres only to change-set which does not belongs to a baseline...
So I tried a query in order to catch all the change-set in a component using

IChangeSetSearchCriteria csCriteria = IChangeSetSearchCriteria.FACTORY.newInstance();
csCriteria.setComponent(component);
IChangeSetHandle[] csRetrieved = scmQuery.findChangeSets(csCriteria, IScmQueryService.MAX_PAGE_SIZE, null, null);

but I've got this exception:

Illegal transaction in progress for service method call


This things is driving me quite crazy. I can't immagine that this cannot be easily done. It's the same thing that runs on client on PendingChanges View when a baseline is expanded.

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,927

Question asked: Nov 11 '09, 3:57 a.m.

Question was seen: 7,191 times

Last updated: Nov 11 '09, 3:57 a.m.

Confirmation Cancel Confirm