for (int i = 0; i < resources.length;i++) svnClient.update(resources[i].getLocation().toFile(),revision,true);
if (parents.length > 0) svnClient.commit(parents,comment,false);   svnClient.commit(resourceFiles,comment,depth == IResource.DEPTH_INFINITE);
            public void run(IProgressMonitor monitor) throws SVNException {                try {                    monitor.beginTask(null, 100);                                        ISVNClientAdapter svnClient = getSVNWorkspaceRoot().getRepository().getSVNClient();                    OperationManager.getInstance().beginOperation(svnClient);                    for (int i = 0; i < resources.length;i++)                        svnClient.update(resources[i].getLocation().toFile(),revision,true);                } catch (SVNClientException e) {                    throw SVNException.wrapException(e);                } finally {                    OperationManager.getInstance().endOperation();                    monitor.done();                }                    }