/** * recover the berkeley db of a repository, returns youngest revision * * @param path the path to the repository * @throws ClientException throw in case of problem */ public long recover(String path) throws ClientException { try { File repositoryRoot = new File(path).getAbsoluteFile(); getAdminClient().doRecover(repositoryRoot); return getAdminClient().getYoungestRevision(repositoryRoot); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } return -1; }
/** * recover the berkeley db of a repository, returns youngest revision * * @param path the path to the repository * @throws ClientException throw in case of problem */ public long recover(String path) throws ClientException { try { File repositoryRoot = new File(path).getAbsoluteFile(); getAdminClient().doRecover(repositoryRoot); return getAdminClient().getYoungestRevision(repositoryRoot); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } return -1; }
/** * recover the berkeley db of a repository, returns youngest revision * * @param path the path to the repository * @throws ClientException throw in case of problem */ public long recover(String path) throws ClientException { try { File repositoryRoot = new File(path).getAbsoluteFile(); getAdminClient().doRecover(repositoryRoot); return getAdminClient().getYoungestRevision(repositoryRoot); } catch (SVNException e) { JavaHLObjectFactory.throwException(e, myDelegate); } return -1; }
public void run() throws SVNException { SVNAdminClient client = getEnvironment().getClientManager().getAdminClient(); client.setEventHandler(this); client.doRecover(getLocalRepository()); getEnvironment().getOut().println(); getEnvironment().getOut().println("Recovery completed."); long youngestRevision = client.getYoungestRevision(getLocalRepository()); String message = "The latest repos revision is {0}."; message = MessageFormat.format(message, new Object[] { String.valueOf(youngestRevision) }); getEnvironment().getOut().println(message); }
public void run() throws SVNException { SVNAdminClient client = getEnvironment().getClientManager().getAdminClient(); client.setEventHandler(this); client.doRecover(getLocalRepository()); getEnvironment().getOut().println(); getEnvironment().getOut().println("Recovery completed."); long youngestRevision = client.getYoungestRevision(getLocalRepository()); String message = "The latest repos revision is {0}."; message = MessageFormat.format(message, new Object[] { String.valueOf(youngestRevision) }); getEnvironment().getOut().println(message); }
public long recover(File path, ReposNotifyCallback callback) throws ClientException { beforeOperation(); try { File repositoryRoot = path.getAbsoluteFile(); getAdminClient().doRecover(repositoryRoot); getAdminClient().setEventHandler(new SVNAdminEventAdapter() { @Override public void checkCancelled() throws SVNCancelException { SVNReposImpl.this.checkCancelled(); } }); return getAdminClient().getYoungestRevision(repositoryRoot); } catch (SVNException e) { throwException(e, client); } finally { afterOperation(); } return -1; }