@NotThreadSafe public class


extends Object
   ↳ com.atlassian.bitbucket.pull.PullRequestRescopeAnalyzer

This class is deprecated.
in 4.7 for removal in 5.0. Replaced by the more efficient BulkPullRequestRescopeAnalyzer

Class Overview

Helper class that calculates how a PullRequestRescope rescope changes its target pull request. The analyzer expects to receive all commits that are reachable from the oldFrom, oldTo, newFrom and newTo commits, but are not reachable from their common ancestor on the onCommit(String, Collection) method. It expects to receive these commits in topological order: no commit is received before any of its children.

The onCommit(String, Collection) method may be called with any other commits; these are ignored.


Public Constructors
PullRequestRescopeAnalyzer(PullRequestRescope rescope, int maxCommitIds)
Public Methods
@Nonnull List<String> getAddedCommits()
int getAddedCommitsCount()
@Nullable String getMergeHash()
@Nonnull PullRequestRescopeOutcome getOutcome()
@Nonnull List<String> getRemovedCommits()
int getRemovedCommitsCount()
PullRequestRescope getRescope()
boolean isDone()
boolean onCommit(String commitId, Collection<String> parentIds)
Inherited Methods
From class java.lang.Object

Public Constructors

public PullRequestRescopeAnalyzer (PullRequestRescope rescope, int maxCommitIds)

Public Methods

@Nonnull public List<String> getAddedCommits ()

public int getAddedCommitsCount ()

@Nullable public String getMergeHash ()

@Nonnull public PullRequestRescopeOutcome getOutcome ()

@Nonnull public List<String> getRemovedCommits ()

public int getRemovedCommitsCount ()

public PullRequestRescope getRescope ()

public boolean isDone ()

public boolean onCommit (String commitId, Collection<String> parentIds)