Package org.tmatesoft.svn.core.wc

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


    SVNRevision committedRevision = status.getCommittedRevision();
    SVNRevision remoteRevision = status.getRemoteRevision();
    SVNRevision revision = status.getRevision();
    SVNRevision copyFromRevision = status.getCopyFromRevision();

    SVNStatusType remotePropertiesStatus = status.getRemotePropertiesStatus();
    SVNStatusType remoteContentsStatus = status.getRemoteContentsStatus();
    SVNStatusType propertiesStatus = status.getPropertiesStatus();
    SVNStatusType contentsStatus = status.getContentsStatus();

    Date remoteDate = status.getRemoteDate();
    Date committedDate = status.getCommittedDate();
    Date workingContentsDate = status.getWorkingContentsDate();
    Date workingPropertiesDate = status.getWorkingPropertiesDate();

    String author = status.getAuthor();
    String remoteAuthor = status.getRemoteAuthor();

    // Set the computed properties in ant
    this.getProject().setProperty(this.committedRevisionProperty, new Long(committedRevision.getNumber()).toString());

    if (remoteRevision != null)
      this.getProject().setProperty(this.remoteRevisionProperty, new Long(remoteRevision.getNumber()).toString());

    this.getProject().setProperty(this.revisionProperty, new Long(revision.getNumber()).toString());
    this.getProject().setProperty(this.copyFromRevisionProperty, new Long(copyFromRevision.getNumber()).toString());

    this.getProject().setProperty(this.remotePropertiesStatusProperty, remotePropertiesStatus.toString());
    this.getProject().setProperty(this.remoteContentsStatusProperty, remoteContentsStatus.toString());
    this.getProject().setProperty(this.propertiesStatusProperty, propertiesStatus.toString());
    this.getProject().setProperty(this.contentsStatusProperty, contentsStatus.toString());

    if (remoteDate != null)
      this.getProject().setProperty(this.remoteDateProperty, DateFormat.getInstance().format(remoteDate));

    this.getProject().setProperty(this.committedDateProperty, DateFormat.getInstance().format(committedDate));
View Full Code Here


    SVNRevision committedRevision = status.getCommittedRevision();
    SVNRevision remoteRevision = status.getRemoteRevision();
    SVNRevision revision = status.getRevision();
    SVNRevision copyFromRevision = status.getCopyFromRevision();

    SVNStatusType remotePropertiesStatus = status
        .getRemotePropertiesStatus();
    SVNStatusType remoteContentsStatus = status.getRemoteContentsStatus();
    SVNStatusType propertiesStatus = status.getPropertiesStatus();
    SVNStatusType contentsStatus = status.getContentsStatus();

    Date remoteDate = status.getRemoteDate();
    Date committedDate = status.getCommittedDate();
    Date workingContentsDate = status.getWorkingContentsDate();
    Date workingPropertiesDate = status.getWorkingPropertiesDate();

    String author = status.getAuthor();
    String remoteAuthor = status.getRemoteAuthor();

    if (!status.getContentsStatus().equals(SVNStatusType.STATUS_NORMAL))
    {
      if (status.getContentsStatus().equals(SVNStatusType.STATUS_CONFLICTED)
          || status.getContentsStatus().equals(SVNStatusType.CONFLICTED)
          || status.getContentsStatus().equals(SVNStatusType.CONFLICTED_UNRESOLVED))
        conflicted = true;
      modified = true;
    }
    if (status.getRevision().getNumber() < minVersion
        && status.getRevision().getNumber() > 0)
      minVersion = status.getRevision().getNumber();
    if (status.getRevision().getNumber() > maxVersion)
      maxVersion = status.getRevision().getNumber();

    // Set the computed properties in ant
    this.getProject().setProperty(this.committedRevisionProperty,
        new Long(committedRevision.getNumber()).toString());

    if (remoteRevision != null)
      this.getProject().setProperty(this.remoteRevisionProperty,
          new Long(remoteRevision.getNumber()).toString());

    this.getProject().setProperty(this.revisionProperty,
        new Long(revision.getNumber()).toString());
    this.getProject().setProperty(this.copyFromRevisionProperty,
        new Long(copyFromRevision.getNumber()).toString());

    this.getProject().setProperty(this.remotePropertiesStatusProperty,
        remotePropertiesStatus.toString());
    this.getProject().setProperty(this.remoteContentsStatusProperty,
        remoteContentsStatus.toString());
    this.getProject().setProperty(this.propertiesStatusProperty,
        propertiesStatus.toString());
    this.getProject().setProperty(this.contentsStatusProperty,
        contentsStatus.toString());

    if (remoteDate != null)
      this.getProject().setProperty(this.remoteDateProperty,
          DateFormat.getInstance().format(remoteDate));
View Full Code Here

   *            the status to handle
   */
  public void handleStatus(SVNStatus status)
  {
    boolean output = verbose;
    SVNStatusType cstatus = status.getContentsStatus();
    SVNStatusType pstatus = status.getPropertiesStatus();
    if ((!cstatus.equals(SVNStatusType.STATUS_NORMAL)
          && !cstatus.equals(SVNStatusType.STATUS_IGNORED)
          && !cstatus.equals(SVNStatusType.STATUS_NONE)
          && !cstatus.equals(SVNStatusType.UNCHANGED))
        || (!pstatus.equals(SVNStatusType.STATUS_NORMAL)
          && !pstatus.equals(SVNStatusType.STATUS_IGNORED)
          && !pstatus.equals(SVNStatusType.STATUS_NONE)
          && !pstatus.equals(SVNStatusType.UNCHANGED))) {
      if (status.getContentsStatus().equals(SVNStatusType.STATUS_CONFLICTED)
          || status.getContentsStatus().equals(SVNStatusType.CONFLICTED)
          || status.getContentsStatus().equals(SVNStatusType.CONFLICTED_UNRESOLVED))
      {
        if (verbose)
          System.out.println("conflicted: "
              + status.getFile().getAbsolutePath());
        output = false;
        conflicted = true;
      } else {
        if (verbose)
          System.out.println("modified: "
              + status.getFile().getAbsolutePath() + ": "
              + cstatus.getCode() + pstatus.getCode());
        output = false;
      }
      modified = true;
    }
    if (status.getRevision().getNumber() < minVersion
View Full Code Here

        SVNLog log = null;
        SVNAdminArea dir = wcAccess.retrieve(parent);
        if (!dryRun) {
            log = dir.getLog();
        }
        SVNStatusType result = dir.mergeProperties(name, baseProperties, diff, null, null, baseMerge, dryRun, log);
        if (!dryRun) {
            log.save();
            dir.runLogs();
        }
        return result;
View Full Code Here

TOP

Related Classes of org.tmatesoft.svn.core.wc.SVNStatusType

Copyright © 2018 www.massapicom. 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.