/AWS1/IF_CMT=>MERGEBRANCHESBYFASTFORWARD()¶
About MergeBranchesByFastForward¶
Merges two branches using the fast-forward merge strategy.
Method Signature¶
METHODS /AWS1/IF_CMT~MERGEBRANCHESBYFASTFORWARD
IMPORTING
!IV_REPOSITORYNAME TYPE /AWS1/CMTREPOSITORYNAME OPTIONAL
!IV_SOURCECOMMITSPECIFIER TYPE /AWS1/CMTCOMMITNAME OPTIONAL
!IV_DSTCOMMITSPECIFIER TYPE /AWS1/CMTCOMMITNAME OPTIONAL
!IV_TARGETBRANCH TYPE /AWS1/CMTBRANCHNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cmtmergebranchesbyf01
RAISING
/AWS1/CX_CMTBRANCHDOESNOTEXEX
/AWS1/CX_CMTBRANCHNAMEISTAGN00
/AWS1/CX_CMTBRANCHNAMEREQUIR00
/AWS1/CX_CMTCOMMITDOESNOTEXEX
/AWS1/CX_CMTCOMMITREQUIREDEX
/AWS1/CX_CMTCONCURRENTREFERE00
/AWS1/CX_CMTENCINTEGRITYCHXF00
/AWS1/CX_CMTENCKEYACCDENIEDEX
/AWS1/CX_CMTENCKEYDISABLEDEX
/AWS1/CX_CMTENCKEYNOTFOUNDEX
/AWS1/CX_CMTENCKEYUNAVAILEX
/AWS1/CX_CMTINVBRANCHNAMEEX
/AWS1/CX_CMTINVALIDCOMMITEX
/AWS1/CX_CMTINVREPOSITORYNAM00
/AWS1/CX_CMTINVTARGETBRANCHEX
/AWS1/CX_CMTMANUALMERGEREQUI00
/AWS1/CX_CMTREPOSITORYDOESNO00
/AWS1/CX_CMTREPOSITORYNAMERE00
/AWS1/CX_CMTTIPSDIVERGENCEEX00
/AWS1/CX_CMTCLIENTEXC
/AWS1/CX_CMTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_repositoryname TYPE /AWS1/CMTREPOSITORYNAME /AWS1/CMTREPOSITORYNAME¶
The name of the repository where you want to merge two branches.
iv_sourcecommitspecifier TYPE /AWS1/CMTCOMMITNAME /AWS1/CMTCOMMITNAME¶
The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
iv_dstcommitspecifier TYPE /AWS1/CMTCOMMITNAME /AWS1/CMTCOMMITNAME¶
The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
Optional arguments:¶
iv_targetbranch TYPE /AWS1/CMTBRANCHNAME /AWS1/CMTBRANCHNAME¶
The branch where the merge is applied.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cmtmergebranchesbyf01 /AWS1/CL_CMTMERGEBRANCHESBYF01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->mergebranchesbyfastforward(
iv_dstcommitspecifier = |string|
iv_repositoryname = |string|
iv_sourcecommitspecifier = |string|
iv_targetbranch = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_objectid = lo_result->get_commitid( ).
lv_objectid = lo_result->get_treeid( ).
ENDIF.