/** * Reads the provided dump stream committing new revisions to a repository. * * <p> * On each revision loaded this method fires an {@link SVNAdminEvent} * with action set to {@link SVNAdminEventAction#REVISION_LOADED} to the registered * {@link ISVNAdminEventHandler} (if any). To register your <b>ISVNAdminEventHandler</b> * pass it to {@link #setEventHandler(ISVNEventHandler)}. For this operation the following * information can be retrieved out of {@link SVNAdminEvent}: * <ul> * <li>original revision - use {@link SVNAdminEvent#getOriginalRevision() SVNAdminEvent.getOriginalRevision()} to get it</li> * <li>new committed revision - use {@link SVNAdminEvent#getRevision() SVNAdminEvent.getRevision()} to get it</li> * </ul> * * <p> * A call to this method is equivalent to * <code>doLoad(repositoryRoot, dumpStream, false, false, SVNUUIDAction.DEFAULT, null)</code>. * * @param repositoryRoot the root directory path of the repository where * new revisions will be committed * @param dumpStream stream with dumped contents of a repository * @throws SVNException * @see #doLoad(File, InputStream, boolean, boolean, SVNUUIDAction, String) * @since 1.1.1 */ public void doLoad(File repositoryRoot, InputStream dumpStream) throws SVNException { doLoad(repositoryRoot, dumpStream, false, false, SVNUUIDAction.DEFAULT, null); }
/** * Reads the provided dump stream committing new revisions to a repository. * * <p> * On each revision loaded this method fires an {@link SVNAdminEvent} * with action set to {@link SVNAdminEventAction#REVISION_LOADED} to the registered * {@link ISVNAdminEventHandler} (if any). To register your <b>ISVNAdminEventHandler</b> * pass it to {@link #setEventHandler(ISVNEventHandler)}. For this operation the following * information can be retrieved out of {@link SVNAdminEvent}: * <ul> * <li>original revision - use {@link SVNAdminEvent#getOriginalRevision() SVNAdminEvent.getOriginalRevision()} to get it</li> * <li>new committed revision - use {@link SVNAdminEvent#getRevision() SVNAdminEvent.getRevision()} to get it</li> * </ul> * * <p> * A call to this method is equivalent to * <code>doLoad(repositoryRoot, dumpStream, false, false, SVNUUIDAction.DEFAULT, null)</code>. * * @param repositoryRoot the root directory path of the repository where * new revisions will be committed * @param dumpStream stream with dumped contents of a repository * @throws SVNException * @see #doLoad(File, InputStream, boolean, boolean, SVNUUIDAction, String) * @since 1.1.1 */ public void doLoad(File repositoryRoot, InputStream dumpStream) throws SVNException { doLoad(repositoryRoot, dumpStream, false, false, SVNUUIDAction.DEFAULT, null); }
/** * Reads the provided dump stream committing new revisions to a repository. * * <p> * On each revision loaded this method fires an {@link SVNAdminEvent} * with action set to {@link SVNAdminEventAction#REVISION_LOADED} to the registered * {@link ISVNAdminEventHandler} (if any). To register your <b>ISVNAdminEventHandler</b> * pass it to {@link #setEventHandler(ISVNEventHandler)}. For this operation the following * information can be retrieved out of {@link SVNAdminEvent}: * <ul> * <li>original revision - use {@link SVNAdminEvent#getOriginalRevision() SVNAdminEvent.getOriginalRevision()} to get it</li> * <li>new committed revision - use {@link SVNAdminEvent#getRevision() SVNAdminEvent.getRevision()} to get it</li> * </ul> * * <p> * A call to this method is equivalent to * <code>doLoad(repositoryRoot, dumpStream, false, false, SVNUUIDAction.DEFAULT, null)</code>. * * @param repositoryRoot the root directory path of the repository where * new revisions will be committed * @param dumpStream stream with dumped contents of a repository * @throws SVNException * @see #doLoad(File, InputStream, boolean, boolean, SVNUUIDAction, String) * @since 1.1.1 */ public void doLoad(File repositoryRoot, InputStream dumpStream) throws SVNException { doLoad(repositoryRoot, dumpStream, false, false, SVNUUIDAction.DEFAULT, null); }
adminClient.doLoad(repository, inputStream);
/** * Method description * * * @param adminClient * @param dump * @param repository * * @throws IOException * @throws SVNException */ private void restore(SVNAdminClient adminClient, ByteSource dump, File repository) throws SVNException, IOException { InputStream inputStream = null; try { inputStream = dump.openBufferedStream(); adminClient.doLoad(repository, inputStream); } finally { Closeables.close(inputStream, true); } } }
getAdminClient().doLoad(path.getAbsoluteFile(), is, usePreCommitHook, usePostCommitHook, uuidAction, relativePath); } catch (SVNException e) { if (messageOutput != null) {
getAdminClient().doLoad(new File(path).getAbsoluteFile(), is, usePreCommitHook, usePostCommitHook, uuidAction, relativePath); } catch (SVNException e) { if (messageOutput != null) {
getAdminClient().doLoad(new File(path).getAbsoluteFile(), is, usePreCommitHook, usePostCommitHook, uuidAction, relativePath); } catch (SVNException e) { if (messageOutput != null) {
getAdminClient().doLoad(new File(path).getAbsoluteFile(), is, usePreCommitHook, usePostCommitHook, uuidAction, relativePath); } catch (SVNException e) { if (messageOutput != null) {
@Override protected SVNAdminEvent run() throws SVNException { SVNAdminClient ac = new SVNAdminClient(getOperation().getAuthenticationManager(), getOperation().getOptions()); ac.setEventHandler(this); ac.doLoad( getOperation().getRepositoryRoot(), getOperation().getDumpStream(), getOperation().isUsePreCommitHook(), getOperation().isUsePostCommitHook(), getOperation().getUuidAction(), getOperation().getParentDir()); return getOperation().first(); }
public void run() throws SVNException { SVNAdminClient client = getEnvironment().getClientManager().getAdminClient(); if (!getSVNAdminEnvironment().isQuiet()) { client.setEventHandler(this); } SVNUUIDAction uuidAction = SVNUUIDAction.DEFAULT; if (getSVNAdminEnvironment().isForceUUID()) { uuidAction = SVNUUIDAction.FORCE_UUID; } else if (getSVNAdminEnvironment().isIgnoreUUID()) { uuidAction = SVNUUIDAction.IGNORE_UUID; } client.doLoad(getLocalRepository(), getEnvironment().getIn(), getSVNAdminEnvironment().isUsePreCommitHook(), getSVNAdminEnvironment().isUsePostCommitHook(), uuidAction, getSVNAdminEnvironment().getParentDir()); }
public void run() throws SVNException { SVNAdminClient client = getEnvironment().getClientManager().getAdminClient(); if (!getSVNAdminEnvironment().isQuiet()) { client.setEventHandler(this); } SVNUUIDAction uuidAction = SVNUUIDAction.DEFAULT; if (getSVNAdminEnvironment().isForceUUID()) { uuidAction = SVNUUIDAction.FORCE_UUID; } else if (getSVNAdminEnvironment().isIgnoreUUID()) { uuidAction = SVNUUIDAction.IGNORE_UUID; } client.doLoad(getLocalRepository(), getEnvironment().getIn(), getSVNAdminEnvironment().isUsePreCommitHook(), getSVNAdminEnvironment().isUsePostCommitHook(), uuidAction, getSVNAdminEnvironment().getParentDir()); }