@Override protected boolean existsInDestination(ObjectId commitId) { return destination.objectExists(commitId); } }
@Override protected boolean existsInDestination(ObjectId commitId) { return destination.objectExists(commitId); } };
@Override protected boolean existsInDestination(ObjectId commitId) { return destination.objectExists(commitId); } }
@Override protected boolean existsInDestination(ObjectId commitId) { return destination.objectExists(commitId); } };
@Override protected boolean existsInDestination(ObjectId commitId) { return destination.objectExists(commitId); }
@Override protected boolean existsInDestination(ObjectId commitId) { return destination.objectExists(commitId); }
@Override protected Evaluation evaluate(CommitNode commitNode) { if (destination.objectExists(commitNode.getObjectId())) { return Evaluation.EXCLUDE_AND_PRUNE; } else { return Evaluation.INCLUDE_AND_CONTINUE; } }
@Override protected Evaluation evaluate(CommitNode commitNode) { if (destination.objectExists(commitNode.getObjectId())) { return Evaluation.EXCLUDE_AND_PRUNE; } else { return Evaluation.INCLUDE_AND_CONTINUE; } }
@Override protected Evaluation evaluate(CommitNode commitNode) { if (destination.objectExists(commitNode.getObjectId())) { return Evaluation.EXCLUDE_AND_PRUNE; } if (!commitNode.getObjectId().equals(ObjectId.NULL) && !source.objectExists(commitNode.getObjectId())) { // Source is too shallow throw new SynchronizationException(StatusCode.HISTORY_TOO_SHALLOW); } return Evaluation.INCLUDE_AND_CONTINUE; }
@Override protected Evaluation evaluate(CommitNode commitNode) { if (destination.objectExists(commitNode.getObjectId())) { return Evaluation.EXCLUDE_AND_PRUNE; } if (!commitNode.getObjectId().equals(ObjectId.NULL) && !source.objectExists(commitNode.getObjectId())) { // Source is too shallow throw new SynchronizationException(StatusCode.HISTORY_TOO_SHALLOW); } return Evaluation.INCLUDE_AND_CONTINUE; }
@Override protected Evaluation evaluate(CommitNode commitNode) { if (limit.isPresent() && commitNode.getDepth() > limit.get()) { return Evaluation.EXCLUDE_AND_PRUNE; } else if (!source.objectExists(commitNode.getObjectId())) { // remote history is shallow return Evaluation.EXCLUDE_AND_PRUNE; } boolean exists = destination.objectExists(commitNode.getObjectId()); if (!limit.isPresent() && exists) { // calculate the new fetch limit limit = Optional.of( destination.getDepth(commitNode.getObjectId()) + commitNode.getDepth() - 1); } if (exists) { return Evaluation.EXCLUDE_AND_CONTINUE; } return Evaluation.INCLUDE_AND_CONTINUE; }
@Override protected Evaluation evaluate(CommitNode commitNode) { if (limit.isPresent() && commitNode.getDepth() > limit.get()) { return Evaluation.EXCLUDE_AND_PRUNE; } else if (!source.objectExists(commitNode.getObjectId())) { // remote history is shallow return Evaluation.EXCLUDE_AND_PRUNE; } boolean exists = destination.objectExists(commitNode.getObjectId()); if (!limit.isPresent() && exists) { // calculate the new fetch limit limit = Optional.of( destination.getDepth(commitNode.getObjectId()) + commitNode.getDepth() - 1); } if (exists) { return Evaluation.EXCLUDE_AND_CONTINUE; } return Evaluation.INCLUDE_AND_CONTINUE; }