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(); } }
/** * This method is used by an automated test. * * @return * @throws SVNException */ public boolean doLocalAndRemoteDataMatch() throws SVNException { return svnManager.isWatchedFolderInRepository() && svnManager.isWorkingDirectoryValid() && !svnManager.isLocalWorkCopyOutdated(); }