f9s4 wrote:
I think I can do this by
going through
all the changeSets by
"SCMPlatform.getWorkspaceManager(repo).findChangeSets()"
and adding the files to a set one by one.
Is there any efficient API for achieving this?
Thanks~
1. Given a workspace handle, you can get a connection to the workspace
via IWorkspaceManager.
2. With a workspace connection, you can iterate over all components via
getComponents().
3. For each component, you can visit each configuration via
IWorkspaceConnection#configuration(componentHandle).
4. For each IConfiguration, you can get children from the root folder
by using childEntriesForRoot(). This will list off folder and files.
5. For every folder, you can recurse and call
IConfiguration#childEntries() on it.
HTH,
JohnC
SCM Server