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

Query to see the change sets sizes

Hello,

is there any way to find the sizes of the change sets by using a query in RTC 3.x and  RTC 4.x?
Is there a way to query on the time stamp they were  delivered to the stream?
As background info: our  customer needs to do some analysis on the change set sizes introduced late in the development and test cycle, when the development iteration was already closed.

Thank you,
Zica

0 votes



One answer

Permanent link
Plain Java Client Libraries API documentation can be downloaded from jazz.net.

You will want to look at IWorkspaceManager.findChangeSets which takes an IChangeSetSearchCritiera which specifies the criteria you are searching for.  In particular you can set a modifiedAfter timestamp to find changesets modified after a particular date.
IChangeSetSearchCriteria criteria = IChangeSetSearchCriteria.FACTORY.newInstance();
criteria.setComponent(myComponent);
criteria.setModifiedAfter(interestingTime);

List<IChangeSetHandle> changeSetHandles = workspaceManager.findChangeSets(criteria, 
                                        IWorkspaceManager.MAX_QUERY_SIZE, null);
 
To find the sizes of the changeSets you will need to fetch the full IChangeSet objects:
IItemManager itemManager = repository.itemManager();
List<IChangeSet> changeSets = itemManager.fetchCompleteItems(changeSetHandles, IItemManager.DEFAULT, null);
IChangeSet.changes() is the list of individual changes in the change set.

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
× 12,029
× 1,204

Question asked: Dec 07 '12, 6:53 a.m.

Question was seen: 5,547 times

Last updated: Dec 13 '12, 4:31 p.m.

Confirmation Cancel Confirm