How to use batchCommit() method of IScmService?
As my requirement to check in multiple unresolved changes/ files into component, is batchCommit() is right choice to do the same? I used "Metronome" to find out which RTC API call during check in multiple files. But I want to do this Java API, Is this possible in Java. If yes please suggest parameters I need to pass batchCommit() method.
Accepted answer
If you are writing a client-side plugin, here's the corresponding API:
ITeamRepository repo = getRepo();
IWorkspaceHandle workspaceHandle = getWorkspace();
IWorkspaceManager wm = ScmPlatform.getWorkspaceManager(repo);
IWorkspaceConnection wc = wm.getWorkspaceConnection(workspaceHandle, monitor);
From here you can use the wc#commit(...) method, but you'd have to specify the change set you want the check-in to go into, and build up the files to check-in.