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

Getting a list of ChangeSets for a given Stream

 I'm trying to get a list of ChangeSets for a given Stream: 

IChangeHistory ch = workspaceConnection.changeHistory(componentHandle);

I do get a history for one stream, but I am unable to change the flowtarget of the workspace to another stream in order to see the history of that stream.
Here is what I am trying to do to change the flowtarget:

IWorkspaceHandle streamA = getStreamOrWorkspace(streamName, wm, IWorkspaceSearchCriteria.STREAMS);
flowTable.unsetCurrentDeliverFlow();
flowTable.unsetCurrentAcceptFlow();
for (Object o : new ArrayList<Object>(flowTable.deliverTargets())) {
            IFlowEntry e = (IFlowEntry)o;
            IFlowNodeHandle flowNode = e.getFlowNode();
            flowTable.removeDeliverFlow(flowNode);
            flowTable.removeAcceptFlow(flowNode);
}
flowTable.addAcceptFlow(streamA, repo.getId(), repo.getRepositoryURI(), null, null);
flowTable.addDeliverFlow(streamA, repo.getId(), repo.getRepositoryURI(), null, null);


Is there a more correct way to change the flow target, and then get the changesets?  Or, is there a better way than changing the flow target?

1

0 votes

Comments
Thanks. I must have made an earlier assumption about the WorkspaceConnection, and was only looking for workspaces in my query. Your suggestion worked.



One answer

Permanent link
Why change flow tables?  just get a workspaceconnection to the other stream and get its history.

workspace and stream are the same in this regard.

and u can do this from the commandline..

there was also a utility I wrote to dump all the changsets in a stream to find an access problem. I think it is in the tools stream (and on the N: drive).. ask Gaurav

1 vote

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,934
× 411
× 169

Question asked: Jul 14 '14, 1:00 p.m.

Question was seen: 3,716 times

Last updated: Jul 29 '14, 9:48 a.m.

Confirmation Cancel Confirm