Examples of SVNEventAction


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

  }

  @Override
  public void handleEvent(SVNEvent event, double progress) throws SVNException {
        String nullString = " ";
        SVNEventAction action = event.getAction();
        String pathChangeType = nullString;
        if (action == SVNEventAction.ADD) {
           
          LOG.info("A     " + event.getFile());
            return;
View Full Code Here

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

        myCurrentDirectory.runLogs();
        completeDirectory(myCurrentDirectory);
        if (!myCurrentDirectory.IsAdded) {
            if (!(adminArea == myAdminInfo.getAnchor() && !"".equals(myAdminInfo.getTargetName()))) {
                // skip event for anchor when there is a target.
                SVNEventAction action = SVNEventAction.UPDATE_UPDATE;
                if (propStatus == SVNStatusType.UNKNOWN) {
                    action = SVNEventAction.UPDATE_NONE;
                }
                myWCAccess.handleEvent(SVNEventFactory.createUpdateModifiedEvent(myAdminInfo, adminArea, "", SVNNodeKind.DIR, action, null, SVNStatusType.UNKNOWN, propStatus, null));
            }
View Full Code Here

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

        if (!myCurrentFile.IsAdded && textStatus == SVNStatusType.UNCHANGED && propStatus == SVNStatusType.UNCHANGED && lockStatus == SVNStatusType.LOCK_UNCHANGED) {
            // no changes, probably just wcurl switch.
            myCurrentFile = null;
            return;
        }
        SVNEventAction action = myCurrentFile.IsAdded ? SVNEventAction.UPDATE_ADD : SVNEventAction.UPDATE_UPDATE;
        myWCAccess.handleEvent(SVNEventFactory.createUpdateModifiedEvent(myAdminInfo, adminArea, myCurrentFile.Name, SVNNodeKind.FILE, action, null, textStatus, propStatus, lockStatus));
        myCurrentFile = null;
    }
View Full Code Here

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

        myCurrentDirectory.loadFromRepository();
    }

    public void deleteEntry(String path, long revision) throws SVNException {
        SVNStatusType type = SVNStatusType.INAPPLICABLE;
        SVNEventAction action = SVNEventAction.SKIP;
        SVNEventAction expectedAction = SVNEventAction.UPDATE_DELETE;
       
        SVNNodeKind nodeKind = myRepos.checkPath(path, myRevision1);
        SVNAdminArea dir = retrieve(myCurrentDirectory.myWCFile, true);
       
        if (myAdminInfo == null || dir != null) {
View Full Code Here

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

    public void addDir(String path, String copyFromPath, long copyFromRevisionthrows SVNException {
        myCurrentDirectory = new SVNDirectoryInfo(myCurrentDirectory, path, true);
        myCurrentDirectory.myBaseProperties = Collections.EMPTY_MAP;
       
        SVNEventAction expectedAction = SVNEventAction.UPDATE_ADD;
        SVNEventAction action = expectedAction;
        SVNStatusType type = getDiffCallback().directoryAdded(path, myRevision2);
        if (myEventHandler != null) {
            if (type == SVNStatusType.MISSING || type == SVNStatusType.OBSTRUCTED) {
                action = SVNEventAction.SKIP;
            }
View Full Code Here

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

        myCurrentDirectory.myPropertyDiff.put(name, value);
    }

    public void closeDir() throws SVNException {
        SVNStatusType type = SVNStatusType.UNKNOWN;
        SVNEventAction expectedAction = SVNEventAction.UPDATE_UPDATE;
        SVNEventAction action = expectedAction;
       
        if (myIsDryRun) {
            getDiffCallback().clearDeletedPaths();
        }
       
View Full Code Here

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

    public void textDeltaEnd(String commitPath) throws SVNException {
        myDeltaProcessor.textDeltaEnd();
    }

    public void closeFile(String commitPath, String textChecksum) throws SVNException {
        SVNEventAction expectedAction = myCurrentFile.myIsAdded ? SVNEventAction.UPDATE_ADD : SVNEventAction.UPDATE_UPDATE;
        SVNEventAction action = expectedAction;
        SVNStatusType[] type = {SVNStatusType.UNKNOWN, SVNStatusType.UNKNOWN};
       
        try {
            retrieveParent(myCurrentFile.myWCFile, myIsDryRun);
        } catch (SVNException e) {
View Full Code Here

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

        return new SVNRevision[] {externalRevision, externalPegRevision};
    }

    @Override
    public void handleEvent(SVNEvent event, double progress) throws SVNException {
        SVNEventAction action = event.getAction();
        if (action == SVNEventAction.UPDATE_EXTERNAL || action == SVNEventAction.UPDATE_COMPLETED) {
            File file = event.getFile();
            SVNExternalDetails details = externalDetails.remove(file);
            if (details != null) {
                String path;
View Full Code Here

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

                throw new SVNException(SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, e));
            }
            path = getLocalPath(path);
        }

        SVNEventAction action = event.getAction();

        {// commit notifications
            if (action == SVNEventAction.COMMIT_ADDED) {
                out.println("Adding         "+path);
                return;
View Full Code Here

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

        /*
         * Gets the current action. An action is represented by SVNEventAction.
         * In case of a status operation a current action can be determined via
         * SVNEvent.getAction() and SVNEventAction.STATUS_-like constants.
         */
        SVNEventAction action = event.getAction();
        /*
         * Print out the revision against which the status was performed.  This
         * event is dispatched when the SVNStatusClient.doStatus() was  invoked
         * with the flag remote set to true - that is for  a  local  status  it
         * won't be dispatched.
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.