private void resolveLocalAndRemoteDataMismatches() throws SVNException, CoreException { if (svnManager.isWatchedFolderInRepository()) { if (!svnManager.isWorkingDirectoryValid()) { removeRemoteData( "Deleted the remote data because the personal worskpace existed on the remote repository, but, the local working copy was invalid."); } else if (svnManager.isLocalWorkCopyOutdated()) { removeLocalAndRemoteData( "Deleted the remote data because the local working copy was outdated."); } } else { svnManager.removeSVNMetaData(); } }
private void removeLocalAndRemoteData(String svnMessage) throws CoreException, SVNException { svnManager.removeSVNMetaData(); removeRemoteData(svnMessage); }