Package org.tmatesoft.svn.core.wc

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


                }
            } else {
                myDepth = getDepth();
            }
            // this dir's status in parent.
            SVNStatus parentStatus = null;
            if (myParent != null) {
                parentStatus = (SVNStatus) myParent.myChildrenStatuses.get(myPath);
            } else {
                parentStatus = myAnchorStatus;
            }
            if (parentStatus != null) {
                SVNStatusType textStatus = parentStatus.getContentsStatus();
                if (textStatus != SVNStatusType.STATUS_UNVERSIONED &&
                        textStatus != SVNStatusType.STATUS_MISSING &&
                        textStatus != SVNStatusType.STATUS_OBSTRUCTED &&
                        textStatus != SVNStatusType.STATUS_EXTERNAL &&
                        textStatus != SVNStatusType.STATUS_IGNORED &&
                        parentStatus.getKind() == SVNNodeKind.DIR &&
                        (myDepth == SVNDepth.UNKNOWN ||
                         myDepth == SVNDepth.FILES ||
                         myDepth == SVNDepth.IMMEDIATES ||
                         myDepth == SVNDepth.INFINITY)) {
                    SVNAdminArea dir = getWCAccess().getAdminArea(myPath);
                    if (dir != null) {
                        getDirStatus(null, dir, null, SVNDepth.IMMEDIATES, true, true, null, true, this);
                        SVNStatus thisDirStatus = (SVNStatus)myChildrenStatuses.get(myPath);
                        if (thisDirStatus != null && thisDirStatus.getEntry() != null && (
                                myDepth == SVNDepth.UNKNOWN ||
                                myDepth.compareTo(parentStatus.getEntry().getDepth()) > 0)) {
                            myDepth = thisDirStatus.getEntry().getDepth();
                        }
                    }
                }
            }      
        }
View Full Code Here


                return myURL;
            }
            if (myName == null) {
                return myAnchorStatus.getURL();
            }
            SVNStatus status = (SVNStatus) myParent.myChildrenStatuses.get(myPath);
            if (status != null && status.getEntry() != null && status.getEntry().getSVNURL() != null) {
                return status.getEntry().getSVNURL();
            }
            SVNURL url = myParent.computeURL();
            return url != null ? url.appendPath(myName, false) : null;
        }
View Full Code Here

                    SVNErrorManager.error(err, SVNLogType.WC);
                }
                if (depth != SVNDepth.INFINITY && !force) {
                    if (SVNFileType.getType(path) == SVNFileType.DIRECTORY) {
                        // TODO replace with direct SVNStatusEditor call.
                        SVNStatus status = statusClient.doStatus(path, false);
                        if (status != null && (status.getContentsStatus() == SVNStatusType.STATUS_DELETED || status.getContentsStatus() == SVNStatusType.STATUS_REPLACED)) {
                            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNSUPPORTED_FEATURE, "Cannot non-recursively commit a directory deletion");
                            SVNErrorManager.error(err, SVNLogType.WC);
                        }
                    }
                }
View Full Code Here

        merges.put(targetPath, rangeList);
           
        if (numberOfSkippedPaths > 0) {
            for (Iterator skippedPaths = mySkippedPaths.iterator(); skippedPaths.hasNext();) {
                File skippedPath = (File) skippedPaths.next();
                SVNStatus status = SVNStatusUtil.getStatus(skippedPath, myWCAccess);
                if (status.getContentsStatus() == SVNStatusType.STATUS_NONE ||
                    status.getContentsStatus() == SVNStatusType.STATUS_UNVERSIONED) {
                  continue;
                }
                merges.put(skippedPath, new SVNMergeRangeList(new SVNMergeRange[0]));
            }
        }
View Full Code Here

    // Get the WC Client
    SVNStatusClient client = this.getTask().getSvnClient().getStatusClient();

    // Execute svn status
    SVNStatus status = client.doStatus(filePath, this.remote, this.ignoreExternals);

    // Get the interesting status data
    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)
View Full Code Here

    // Get the WC Client
    SVNStatusClient client = this.getTask().getSvnClient()
        .getStatusClient();

    // Execute svn status
    SVNStatus status;
    if (recursive && filePath.isDirectory()) {
      client.doStatus(filePath, SVNRevision.WORKING, true, this.remote,
          true, false, this.ignoreExternals, this);
    }
    status = client.doStatus(filePath, this.remote, this.ignoreExternals);
    // Get the interesting status data
    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());
View Full Code Here

                    SVNErrorManager.error(err, SVNLogType.WC);
                }
                if (depth != SVNDepth.INFINITY && !force) {
                    if (SVNFileType.getType(path) == SVNFileType.DIRECTORY) {
                        // TODO replace with direct SVNStatusEditor call.
                        SVNStatus status = statusClient.doStatus(path, false);
                        if (status != null && (status.getContentsStatus() == SVNStatusType.STATUS_DELETED || status.getContentsStatus() == SVNStatusType.STATUS_REPLACED)) {
                            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNSUPPORTED_FEATURE, "Cannot non-recursively commit a directory deletion");
                            SVNErrorManager.error(err, SVNLogType.WC);
                        }
                    }
                }
View Full Code Here

TOP

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

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.