Examples of PullPolicyResult


Examples of io.fabric8.git.PullPushPolicy.PullPolicyResult

            writeLock.unlock();
        }
    }
   
    private PullPolicyResult doPullInternal(GitContext context, CredentialsProvider credentialsProvider, boolean allowVersionDelete) {
        PullPolicyResult pullResult = pullPushPolicy.doPull(context, getCredentialsProvider(), allowVersionDelete);
        if (pullResult.getLastException() == null) {
            if (pullResult.localUpdateRequired()) {
                versionCache.invalidateAll();
                notificationRequired = true;
            }
            Set<String> pullVersions = pullResult.getVersions();
            if (!pullVersions.isEmpty() && !pullVersions.equals(versions)) {
                versions.clear();
                versions.addAll(pullVersions);
                versionCache.invalidateAll();
                notificationRequired = true;
            }
            if (pullResult.remoteUpdateRequired()) {
                doPushInternal(context, credentialsProvider);
            }
        }
        return pullResult;
    }
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.