I- the type of intermediate value or
Voidif no intermediate is required.
public static interface SCMSourceRequest.IntermediateLambda<I>
SCMRevision instances may be expensive to instantiate, for example a
may need to get the effective merge revision in order to comply with the equality and "offline" requirement
SCMRevision which could require either asking the remote server or performing a local trial merge.
As this type of operation is only required if the
SCMHead actually meets the
it may be preferred to delay instantiation of the
SCMRevision and instead create the
SCMSourceCriteria.Probe from some intermediate. For example the
only be checking the existence of files, if the file is present in both the
ChangeRequestSCMHead.getTarget() then it will also be present in the merge revision and hence
the computation of the merge revision can be avoided completely.
@Nullable I create() throws IOException, InterruptedException
SCMRevisionthat can be used by
SCMSourceRequest.LazyRevisionLambdato create the
SCMRevisionrespectively. This lambda is used where the creation of the
SCMRevisionmay involve a more time costly operation that the creation of the
Copyright © 2016–2022. All rights reserved.