It's all about the answers!

Ask a question

limitation in number of changesets per workspace?


Bernd van Oostrum (21725371) | asked Jan 18 '11, 6:57 a.m.
Hi,

I'm using


IWorkspace ws = (IWorkspace) getRepository().itemManager().fetchCompleteItem(wsHandle, IItemManager.DEFAULT, new SysoutProgressMonitor());
IContextHandle koekoek = (IContextHandle)ws;
IChangeSetSearchCriteria search = IChangeSetSearchCriteria.FACTORY.newInstance();
search.setOldestFirst(true);//sorteren die hap!!
search.setContext(koekoek);

List<IChangeSetHandle> changeSetHandles = null;
changeSetHandles = SCMPlatform.getWorkspaceManager(getRepository()).findChangeSets(search, Integer.MAX_VALUE, null);


to retrieve the changesets in a workspace.

Everytime I check-in a changeset, the size of the list increases as expected. However, once the size is 512, it is NOT increasing anymore.
Is there a limitation in the number of changesets per workspace or am I missing something completely??

Regards,
Bernd.

One answer



permanent link
Bernd van Oostrum (21725371) | answered Jan 18 '11, 9:49 a.m.
Using this code I'm able to retrieve them all...



IWorkspace ws = (IWorkspace) getRepository().itemManager().fetchCompleteItem(wsHandle, IItemManager.DEFAULT, new SysoutProgressMonitor());
IContextHandle koekoek = (IContextHandle)ws;
IWorkspaceConnection wsconn = getWorkspaceConnection(workspaceORstream);
List<IComponentHandle> components = wsconn.getComponents();
for (Iterator<IComponentHandle> a = components.iterator(); a.hasNext();) {
IComponentHandle comphandle = (IComponentHandle) a.next();
IComponent component = (IComponent) getRepository().itemManager().fetchCompleteItem(comphandle, IItemManager.DEFAULT, new SysoutProgressMonitor());

IChangeSetSearchCriteria search = IChangeSetSearchCriteria.FACTORY.newInstance();
search.setOldestFirst(true);//sorteren die hap!!
search.setComponent(comphandle);

List<IChangeSetHandle> changeSetHandles = null;
changeSetHandles = SCMPlatform.getWorkspaceManager(getRepository()).findChangeSets(search, Integer.MAX_VALUE, null);

Your answer


Register or 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.