Examples of doSwitch()


Examples of org.exist.versioning.svn.wc.SVNUpdateClient.doSwitch()

         */
        updateClient.setIgnoreExternals(false);
        /*
         * returns the number of the revision wcPath was updated to
         */
        return updateClient.doSwitch(wcPath, url, SVNRevision.UNDEFINED, updateToRevision,
                SVNDepth.getInfinityOrFilesDepth(isRecursive), false, false);
    }

    /*
     * Collects status information on local path(s). Like 'svn status (-u) (-N)'
View Full Code Here

Examples of org.obeonetwork.dsl.sysml.design.services.internal.ComputeLabelSwitch.doSwitch()

   * @return the computed label.
   */
  public String computeSysmlLabel(NamedElement element) {
    final ComputeLabelSwitch genLabel = new ComputeLabelSwitch();

    return genLabel.doSwitch(element);
  }
}
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNUpdateClient.doSwitch()

    public long doSwitch(String path, String url, Revision revision, Revision pegRevision, int depth,
            boolean depthIsSticky, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException {
        SVNUpdateClient updater = getSVNUpdateClient();
        try {
            return updater.doSwitch(new File(path).getAbsoluteFile(), SVNURL.parseURIEncoded(url),
                    JavaHLObjectFactory.getSVNRevision(pegRevision),
                    JavaHLObjectFactory.getSVNRevision(revision), JavaHLObjectFactory.getSVNDepth(depth),
                    allowUnverObstructions, depthIsSticky);
        } catch (SVNException e) {
            throwException(e);
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNUpdateClient.doSwitch()

                updater.doRelocate(file, switchURL, targetURL, !getCommandLine().hasArgument(SVNArgument.NON_RECURSIVE));
            } else {
                File file = new File(absolutePath).getAbsoluteFile();
                file = new File(SVNPathUtil.validateFilePath(file.getAbsolutePath()));
                updater.getDebugLog().info("switching path: " + file);
                updater.doSwitch(file, switchURL, revision, !getCommandLine().hasArgument(SVNArgument.NON_RECURSIVE));
            }
        } catch (Throwable th) {
            updater.getDebugLog().info(th);
            println(err, th.getMessage());
            println(err);
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNUpdateClient.doSwitch()

    }

    public long doSwitch(String path, String url, Revision revision, boolean recurse) throws ClientException {
        SVNUpdateClient updater = getSVNUpdateClient();
        try {
            return updater.doSwitch(new File(path).getAbsoluteFile(), SVNURL.parseURIEncoded(url), JavaHLObjectFactory.getSVNRevision(revision), recurse);
        } catch (SVNException e) {
            throwException(e);
        }
        return -1;
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNUpdateClient.doSwitch()

                        listener.getLogger().println("Updating " + location.remote + " at revision " + revisionName);
                        svnuc.doUpdate(local.getCanonicalFile(), r, svnDepth, true, true);
                        break;
                    case SWITCH:
                        listener.getLogger().println("Switching to " + location.remote + " at revision " + revisionName);
                        svnuc.doSwitch(local.getCanonicalFile(), location.getSVNURL(), r, r, svnDepth, true, true, true);
                        break;
                    case CHECKOUT:
                        // This case is handled by the (svnCommand == SvnCommandToUse.CHECKOUT) above.
                        break;
                }
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNUpdateClient.doSwitch()

     */
    updateClient.setIgnoreExternals(false);
    /*
     * returns the number of the revision wcPath was updated to
     */
    return updateClient
        .doSwitch(wcPath, url, updateToRevision, isRecursive);
  }

  /*
   * Collects status information on local path(s). Like 'svn status (-u) (-N)'
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNUpdateClient.doSwitch()

    public long doSwitch(String path, String url, Revision revision, Revision pegRevision, int depth,
            boolean depthIsSticky, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException {
        SVNUpdateClient updater = getSVNUpdateClient();
        try {
            return updater.doSwitch(new File(path).getAbsoluteFile(), SVNURL.parseURIEncoded(url),
                    JavaHLObjectFactory.getSVNRevision(pegRevision),
                    JavaHLObjectFactory.getSVNRevision(revision), JavaHLObjectFactory.getSVNDepth(depth),
                    allowUnverObstructions, depthIsSticky);
        } catch (SVNException e) {
            throwException(e);
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNUpdateClient.doSwitch()

    // Get the Update Client
    SVNUpdateClient client = this.getTask().getSvnClient().getUpdateClient();

    // Execute svn switch
    client.doSwitch(filePath, this.svnUrl, this.pegRevision, this.revision, this.depth, this.allowUnversionedObstructions, this.recursive);
  }

  /** */
  @Override
  protected void validateAttributes() throws Exception
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNUpdateClient.doSwitch()

        if (getSVNEnvironment().getSetDepth() != SVNDepth.UNKNOWN) {
            depth = getSVNEnvironment().getSetDepth();
            depthIsSticky = true;
        }
       
        client.doSwitch(target.getFile(), switchURL.getURL(), switchURL.getPegRevision(),
                getSVNEnvironment().getStartRevision(), depth,
                getSVNEnvironment().isForce(), depthIsSticky);   
    }
   
    protected void relocate(List targets) throws SVNException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.