How to retrieve all the Changesets from a stream using plain java API
Hi,
I am a newbee to the RTC Java Api . I am trying to get all the delivered changesets against a project in RTC.
I was able to retrieve the streams created under the project using the below code . Please help on how we can retrieve the changesets from the component lists.
Also if some one can point to examples in RTC Jazz API it will be much helpful
final IWorkspaceManager mgr = SCMPlatform
.getWorkspaceManager(m_TeamRepo);
IWorkspaceSearchCriteria workspaceCriteria = WorkspaceSearchCriteria.FACTORY
.newInstance();
workspaceCriteria.setPartialOwnerName(projectName);
workspaceCriteria.setKind(IWorkspaceSearchCriteria.STREAMS);
List<IWorkspaceHandle> streamList;
try {
streamList = mgr.findWorkspaces(workspaceCriteria,
Integer.MAX_VALUE, new NullProgressMonitor());
for (IWorkspaceHandle iWorkspaceHandle : streamList) {
IWorkspace stream = (IWorkspace) iWorkspaceHandle
.getFullState();
IWorkspaceConnection workspaceConnection = mgr
.getWorkspaceConnection(iWorkspaceHandle, null);
List componentList = workspaceConnection.getComponents();
for (Object compHandle : componentList) {
// need help .
}
}
Thanks
|
One answer
from the javadoc (make sure u get it)
IWorkspaceManager findChangeSetsjava.util.List findChangeSets(IChangeSetSearchCriteria criteria, int maxResults, org.eclipse.core.runtime.IProgressMonitor monitor) throws TeamRepositoryException
|
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.