@Override protected Evaluation evaluate(CommitNode commitNode) { if (destination.objectExists(commitNode.getObjectId())) { return Evaluation.EXCLUDE_AND_PRUNE; } else { return Evaluation.INCLUDE_AND_CONTINUE; } }
/** * @return the {@link RepositoryWrapper} for this remote */ @Override public RepositoryWrapper getRemoteWrapper() { return new LocalRepositoryWrapper(remoteRepo); }
@Override protected boolean existsInDestination(ObjectId commitId) { return destination.objectExists(commitId); } }
@Override public Deduplicator createDeduplicator() { return new HeapDeduplicator(); } }
/** * Checks whether the {@code left} has already been compared against {@code right} * * @return {@code true} if the pair of ids weren't already visited and are marked * visited as result to this call, {@code false} if this pair was already * visited. */ private boolean visitPair(ObjectId left, ObjectId right) { return deduplicator.visit(left, right); }
@Override public boolean hasNext() { if (next == null) { next = computeNext(); } return next != null; }
@Override public boolean hasNext() { if (next == null) { next = computeNext(); } return next != null; }
@Override protected ImmutableList<ObjectId> getParentsInternal(ObjectId commitId) { return source.getParents(commitId); }
/** * Perform post-push actions, this includes verification that the remote wasn't changed while we * were pushing. * * @param refspec the refspec that we are pushing to * @param newCommitId the new commit id * @param originalRefValue the original value of the ref before pushing */ protected void endPush(String refspec, ObjectId newCommitId, String originalRefValue) { updateRemoteRef(refspec, newCommitId, false); }
public static ObjectFunnel newFunnel(final Supplier<OutputStream> outputFactory, final RevObjectSerializer serializer, final int byteSoftLimit) { return new SizeLimitingFunnel(outputFactory, serializer, byteSoftLimit); }
@Override protected Evaluation evaluate(CommitNode commitNode) { if (destination.objectExists(commitNode.getObjectId())) { return Evaluation.EXCLUDE_AND_PRUNE; } else { return Evaluation.INCLUDE_AND_CONTINUE; } }
@Override protected boolean existsInDestination(ObjectId commitId) { return destination.objectExists(commitId); } }
/** * @return the {@link RepositoryWrapper} for this remote */ @Override public RepositoryWrapper getRemoteWrapper() { return new LocalRepositoryWrapper(remoteRepo); }
@Override public boolean hasNext() { if (next == null) { next = computeNext(); } return next != null; }
@Override public boolean hasNext() { if (next == null) { next = computeNext(); } return next != null; }
@Override protected ImmutableList<ObjectId> getParentsInternal(ObjectId commitId) { return source.getParents(commitId); }
/** * Perform post-push actions, this includes verification that the remote wasn't changed while we * were pushing. * * @param refspec the refspec that we are pushing to * @param newCommitId the new commit id * @param originalRefValue the original value of the ref before pushing */ protected void endPush(String refspec, ObjectId newCommitId, String originalRefValue) { updateRemoteRef(refspec, newCommitId, false); }
@Override protected boolean existsInDestination(ObjectId commitId) { return destination.objectExists(commitId); } };
/** * @return the {@link RepositoryWrapper} for this remote */ @Override public RepositoryWrapper getRemoteWrapper() { return new LocalRepositoryWrapper(remoteRepository); }
@Override protected boolean existsInDestination(ObjectId commitId) { return destination.objectExists(commitId); } };