Package jetbrains.buildServer.vcs
Interface RevisionMatchedByCheckoutRulesCalculator
-
public interface RevisionMatchedByCheckoutRulesCalculatorThis is an optional interface which can be implemented byCollectChangesPolicyimplementation. If implemented, then it's used when a build revision is computed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRevisionMatchedByCheckoutRulesCalculator.Result
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RevisionMatchedByCheckoutRulesCalculator.ResultgetLatestRevisionAcceptedByCheckoutRules(VcsRoot root, CheckoutRules rules, String startRevision, String startRevisionBranchName, Collection<String> stopRevisions)Should return the latest commit which affects files matched by checkout rules.
-
-
-
Method Detail
-
getLatestRevisionAcceptedByCheckoutRules
@NotNull RevisionMatchedByCheckoutRulesCalculator.Result getLatestRevisionAcceptedByCheckoutRules(@NotNull VcsRoot root, @NotNull CheckoutRules rules, @NotNull String startRevision, @NotNull String startRevisionBranchName, @NotNull Collection<String> stopRevisions) throws VcsException
Should return the latest commit which affects files matched by checkout rules. Note: it is expected that checking for changes has been performed for this VCS root before the method call so all caches (local clones) already exist.- Parameters:
root- a VCS root where to search for a commit.rules- checkout rulesstartRevision- the revision from where to start searchstartRevisionBranchName- the name of the branch where the start revision belongsstopRevisions- revisions whose ancestors should be excluded from the computation- Returns:
- the result object with the latest revision reachable from `startRevision` (inclusive) and accepted by the provided checkout rules
- Throws:
VcsException- Since:
- 2023.03
-
-