Examples of doInfo()


Examples of org.tmatesoft.svn.core.wc.SVNWCClient.doInfo()

    SVNWCClient wcClient = svnClientManager.getWCClient();

    wcClient.setIgnoreExternals(false);

    wcClient.doInfo(SVNURL.parseURIDecoded(svnUrl), SVNRevision.HEAD,
        SVNRevision.HEAD, SVNDepth.IMMEDIATES, new ISVNInfoHandler() {

          @Override
          public void handleInfo(SVNInfo info) throws SVNException {
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNWCClient.doInfo()

     */
    static SVNInfo parseSvnInfo(SVNURL remoteUrl, ISVNAuthenticationProvider authProvider) throws SVNException {
        final SvnClientManager manager = createClientManager(authProvider);
        try {
            final SVNWCClient svnWc = manager.getWCClient();
            return svnWc.doInfo(remoteUrl, SVNRevision.HEAD, SVNRevision.HEAD);
        } finally {
            manager.dispose();
        }
    }

View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNWCClient.doInfo()

                try {
                    final SVNWCClient svnWc = manager.getWCClient();
                    // invoke the "svn info"
                    try {
                        SvnInfo info =
                                new SvnInfo(svnWc.doInfo(new File(ws, module.getLocalDir()), SVNRevision.WORKING));
                        revisions.add(new SvnInfoP(info, false));
                    } catch (SVNException e) {
                        e.printStackTrace(listener.error("Failed to parse svn info for " + module.remote));
                    }
                } finally {
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNWCClient.doInfo()

            final SvnClientManager manager = createClientManager(defaultAuthProvider);
            try {
                final SVNWCClient svnWc = manager.getWCClient();
                for (External ext : externals) {
                    try {
                        SvnInfo info = new SvnInfo(svnWc.doInfo(new File(ws, ext.path), SVNRevision.WORKING));
                        revisions.add(new SvnInfoP(info, ext.isRevisionFixed()));
                    } catch (SVNException e) {
                        e.printStackTrace(
                                listener.error("Failed to parse svn info for external " + ext.url + " at " + ext.path));
                    }
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNWCClient.doInfo()

         * @param workspace
         *      The target to run "svn info".
         */
        private SVNInfo parseSvnInfo(File workspace) throws SVNException {
            final SVNWCClient svnWc = clientManager.getWCClient();
            return svnWc.doInfo(workspace,SVNRevision.WORKING);
        }

        @Override
        public List<External> perform() throws IOException, InterruptedException {
            SvnCommandToUse svnCommand = getSvnCommandToUse();
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNWCClient.doInfo()

            try {
                final SVNWCClient svnwc = manager.getWCClient();

                SVNInfo info;
                try {
                    info = svnwc.doInfo(p, SVNRevision.WORKING);
                    String url = info.getURL().toDecodedString();
                    String repoRoot = info.getRepositoryRootURL().toDecodedString();
                    return new PathContext(url, repoRoot, null);
                } catch (SVNException e) {
                    e.printStackTrace();
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNWCClient.doInfo()

      FileFilter filter = createFileFilter(dir);
      File[] files = dir.listFiles(filter);
      for (File file : files) {
        //SVNStatus status = driver.getManager().getStatusClient().doStatus(file, false);
       
        SVNInfo info = client.doInfo(file, SVNRevision.WORKING);
        if (dirOnly) {
          if (file.isDirectory())
            res.add(new SvnAjxpFile(info, path));
        } else {
          res.add(new SvnAjxpFile(info, path));
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNWCClient.doInfo()

    public Info info(String path) throws ClientException {
        SVNWCClient client = getSVNWCClient();
        try {
            if (isURL(path)) {
                return JavaHLObjectFactory.createInfo(client.doInfo(SVNURL.parseURIEncoded(path), SVNRevision.UNDEFINED, SVNRevision.UNDEFINED));
            }
            return JavaHLObjectFactory.createInfo(client.doInfo(new File(path).getAbsoluteFile(), SVNRevision.UNDEFINED));
        } catch (SVNException e) {
            if (e.getErrorMessage().getErrorCode() == SVNErrorCode.UNVERSIONED_RESOURCE) {
                return null;
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNWCClient.doInfo()

        SVNWCClient client = getSVNWCClient();
        try {
            if (isURL(path)) {
                return JavaHLObjectFactory.createInfo(client.doInfo(SVNURL.parseURIEncoded(path), SVNRevision.UNDEFINED, SVNRevision.UNDEFINED));
            }
            return JavaHLObjectFactory.createInfo(client.doInfo(new File(path).getAbsoluteFile(), SVNRevision.UNDEFINED));
        } catch (SVNException e) {
            if (e.getErrorMessage().getErrorCode() == SVNErrorCode.UNVERSIONED_RESOURCE) {
                return null;
            }
            throwException(e);
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNWCClient.doInfo()

  }

    private void info2(String pathOrUrl, Revision revision, Revision pegRevision, int depth, String[] changelists, ISVNInfoHandler handler) throws SVNException {
        SVNWCClient client = getSVNWCClient();
        if (isURL(pathOrUrl)) {
            client.doInfo(SVNURL.parseURIEncoded(pathOrUrl),
                    JavaHLObjectFactory.getSVNRevision(pegRevision),
                    JavaHLObjectFactory.getSVNRevision(revision),
                    JavaHLObjectFactory.getSVNDepth(depth), handler);
        } else {
            Collection changeListsCollection = null;
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.