Examples of SVNInfo


Examples of hudson.scm.SubversionSCM.SvnInfo

                        String remaining = m.substring(n.length());
                        if(remaining.startsWith("/"))   remaining=remaining.substring(1);
                        String remainingSlash = remaining + '/';

                        if ( rev != -1 ) {
                            infos.add(new SvnInfo(loc.getURL(), rev));
                        }

                        for (String path : affectedPath) {
                            if(path.equals(remaining) /*for files*/ || path.startsWith(remainingSlash) /*for dirs*/
                            || remaining.length()==0/*when someone is checking out the whole repo (that is, m==n)*/) {
View Full Code Here

Examples of hudson.scm.SubversionSCM.SvnInfo

                ISVNAuthenticationProvider authProvider = authProviders.get(url);
                if (authProvider == null) {
                    authProvider = defaultAuthProvider;
                }
                final SVNURL svnurl = SVNURL.parseURIDecoded(url);
                long nowRev = new SvnInfo(SubversionSCM.parseSvnInfo(svnurl, authProvider)).revision;

                changes |= (nowRev>baseRev);

                listener.getLogger().println(Messages.SubversionSCM_pollChanges_remoteRevisionAt(url, nowRev));
                revs.put(url, nowRev);
View Full Code Here

Examples of hudson.scm.SubversionSCM.SvnInfo

                return SvnCommandToUse.CHECKOUT;
            }

            try {
                SVNInfo svnkitInfo = parseSvnInfo(module);
                SvnInfo svnInfo = new SvnInfo(svnkitInfo);

                String url = location.getSVNURL().toString();
               
                if (!svnInfo.url.equals(url)) {
                    if (isSameRepository(location, svnkitInfo)) {
View Full Code Here

Examples of hudson.scm.SubversionSCM.SvnInfo

      for (SvnInfo oldRev : this.revisions) {
        if (oldRev.url.equals(newRev.url)) {

          LOGGER.log(Level.FINE, "Updating revision parameter for {0} from {1} to {2}", new Object[] {oldRev.url, oldRev.revision, newRev.revision});

          this.revisions.add(new SvnInfo(oldRev.url, newRev.revision));
          this.revisions.remove(oldRev);
          found = true;
          break;
        }
      }
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNInfo

public class SvnKitVersionChecker extends SvnKitAbstractClientManager implements SvnVersionChecker {

  public long getRemoteVersion(SvnProject project) throws SvnException {
    try {
      SVNInfo svnInfo = managerPool.getSvnManager(project).getWCClient().doInfo(
          SVNURL.parseURIEncoded(project.getUrl()), SVNRevision.HEAD, SVNRevision.HEAD);
      return svnInfo.getCommittedRevision().getNumber();

    }
    catch (SVNException e) {
      throw new SvnException(
          "Exception while trying to get the remote svn version for project " + project,
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNInfo

                listener.getLogger().println("Checking out a fresh workspace because " + module + " doesn't exist");
                return SvnCommandToUse.CHECKOUT;
            }

            try {
                SVNInfo svnkitInfo = parseSvnInfo(module);
                SvnInfo svnInfo = new SvnInfo(svnkitInfo);

                String url = location.getSVNURL().toString();
               
                if (!svnInfo.url.equals(url)) {
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNInfo

        public PathContext invoke(File p, VirtualChannel channel) throws IOException {
            final SvnClientManager manager = SubversionSCM.createClientManager(authProvider);
            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();
                    return null;
                }
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNInfo

      throw new AjxpDriverException("Base path " + baseDir
          + " is not a directory.");
    }

    try {// retrieves SVN infos
      SVNInfo info = manager.getWCClient().doInfo(baseDir,
          SVNRevision.WORKING);
      SVNURL baseUrlTemp = info.getURL();
      if (baseUrl != null) {
        if (!baseUrl.equals(baseUrlTemp)) {
          throw new AjxpDriverException(
              "SVN URL of the working copy "
                  + baseUrlTemp
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNInfo

    }
  }

  private void updateIfRequired(File dir) {
    try {
      SVNInfo wcInfo = manager.getWCClient().doInfo(getBaseDir(),
          SVNRevision.WORKING);
      SVNRevision wcRev = wcInfo.getRevision();
      SVNInfo repoInfo = manager.getWCClient().doInfo(getBaseUrl(),
          null, SVNRevision.HEAD);
      SVNRevision repoRev = repoInfo.getRevision();

      if (log.isTraceEnabled())
        log
            .trace("WC Revision=" + wcRev + ", Repo Revision="
                + repoRev);
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.SVNInfo

      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
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.