public interface ChangeRequestSCMHead2 extends ChangeRequestSCMHead
ChangeRequestSCMHead that should have been in the original mixin but we are not
targeting Java 8 so we cannot add the default methods to the interface and must have an ugly 2 class instead.SCMHeadMixin.Equality| Modifier and Type | Method and Description |
|---|---|
ChangeRequestCheckoutStrategy |
getCheckoutStrategy()
Returns the
ChangeRequestCheckoutStrategy of this ChangeRequestSCMHead. |
String |
getOriginName()
Returns the name of the actual head on the source control system which may or may not be different from
SCMHeadMixin.getName(). |
getId, getTargetgetName, getOrigincompareTo@NonNull ChangeRequestCheckoutStrategy getCheckoutStrategy()
ChangeRequestCheckoutStrategy of this ChangeRequestSCMHead.ChangeRequestCheckoutStrategy.@NonNull String getOriginName()
SCMHeadMixin.getName(). For example in GitHub or Bitbucket this method would return the name of the origin branch
whereas SCMHeadMixin.getName() would return something like PR-24. It is perfectly acceptable for a SCM
implementation to return the same value as SCMHeadMixin.getName() where the SCM implementation does not have a
separate concept of origin name.ChangeRequestSCMHead would have if the SCMSource were configured
against the SCMHeadMixin.getOrigin() directly and the change request were be discoverable as a regular
SCMHead or SCMHeadMixin.getName() if such a concept is not possible in the backing source control system.Copyright © 2016–2019. All rights reserved.