pm.beginTask("", 2); //$NON-NLS-1$
pm.subTask(MessageFormat.format(
CoreText.RevertCommitOperation_reverting,
Integer.valueOf(commits.size())));
RevertCommand command = new Git(repo).revert();
for (RevCommit commit : commits)
command.include(commit);
try {
newHead = command.call();
reverted = command.getRevertedRefs();
result = command.getFailingResult();
} catch (GitAPIException e) {
throw new TeamException(e.getLocalizedMessage(),
e.getCause());
}
pm.worked(1);