mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00
commit
b67963acb3
|
@ -17,15 +17,16 @@ ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CLASS ZCL_ABAPGIT_MIGRATIONS IMPLEMENTATION.
|
CLASS zcl_abapgit_migrations IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
METHOD local_dot_abapgit.
|
METHOD local_dot_abapgit.
|
||||||
|
|
||||||
DATA: lt_repos TYPE zif_abapgit_definitions=>ty_repo_ref_tt,
|
DATA: lt_repos TYPE zif_abapgit_definitions=>ty_repo_ref_tt,
|
||||||
lv_msg TYPE string,
|
|
||||||
lv_shown TYPE abap_bool,
|
lv_shown TYPE abap_bool,
|
||||||
lo_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit,
|
lo_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit,
|
||||||
|
lv_txt1 TYPE string,
|
||||||
|
lv_txt2 TYPE string,
|
||||||
lx_exception TYPE REF TO zcx_abapgit_exception.
|
lx_exception TYPE REF TO zcx_abapgit_exception.
|
||||||
|
|
||||||
FIELD-SYMBOLS: <lo_repo> LIKE LINE OF lt_repos.
|
FIELD-SYMBOLS: <lo_repo> LIKE LINE OF lt_repos.
|
||||||
|
@ -54,12 +55,13 @@ CLASS ZCL_ABAPGIT_MIGRATIONS IMPLEMENTATION.
|
||||||
TRY.
|
TRY.
|
||||||
<lo_repo>->refresh( ).
|
<lo_repo>->refresh( ).
|
||||||
CATCH zcx_abapgit_exception INTO lx_exception.
|
CATCH zcx_abapgit_exception INTO lx_exception.
|
||||||
lv_msg = |Please do not use the "{ <lo_repo>->get_name( ) }" repository until migrated|.
|
lv_txt1 = lx_exception->get_text( ).
|
||||||
|
lv_txt2 = |Please do not use the "{ <lo_repo>->get_name( ) }" repository until migrated|.
|
||||||
CALL FUNCTION 'POPUP_TO_INFORM'
|
CALL FUNCTION 'POPUP_TO_INFORM'
|
||||||
EXPORTING
|
EXPORTING
|
||||||
titel = 'Migration has failed'
|
titel = 'Migration has failed'
|
||||||
txt1 = lx_exception->get_text( )
|
txt1 = lv_txt1
|
||||||
txt2 = lv_msg
|
txt2 = lv_txt2
|
||||||
txt3 = 'You will be prompted to migrate the repository every time you run abapGit.'
|
txt3 = 'You will be prompted to migrate the repository every time you run abapGit.'
|
||||||
txt4 = 'You can safely remove the repository in its ''Advanced -> Remove'' menu.'.
|
txt4 = 'You can safely remove the repository in its ''Advanced -> Remove'' menu.'.
|
||||||
CONTINUE.
|
CONTINUE.
|
||||||
|
|
|
@ -687,7 +687,8 @@ CLASS zcl_abapgit_objects IMPLEMENTATION.
|
||||||
|
|
||||||
DATA: lt_results_overwrite LIKE ct_results,
|
DATA: lt_results_overwrite LIKE ct_results,
|
||||||
lt_confirmed_overwrite LIKE ct_results,
|
lt_confirmed_overwrite LIKE ct_results,
|
||||||
lt_columns TYPE stringtab.
|
lt_columns TYPE stringtab,
|
||||||
|
lv_column LIKE LINE OF lt_columns.
|
||||||
|
|
||||||
FIELD-SYMBOLS: <ls_result> LIKE LINE OF ct_results.
|
FIELD-SYMBOLS: <ls_result> LIKE LINE OF ct_results.
|
||||||
|
|
||||||
|
@ -707,8 +708,10 @@ CLASS zcl_abapgit_objects IMPLEMENTATION.
|
||||||
|
|
||||||
IF lines( lt_results_overwrite ) > 0.
|
IF lines( lt_results_overwrite ) > 0.
|
||||||
|
|
||||||
INSERT `OBJ_TYPE` INTO TABLE lt_columns.
|
lv_column = `OBJ_TYPE`.
|
||||||
INSERT `OBJ_NAME` INTO TABLE lt_columns.
|
INSERT lv_column INTO TABLE lt_columns.
|
||||||
|
lv_column = `OBJ_NAME`.
|
||||||
|
INSERT lv_column INTO TABLE lt_columns.
|
||||||
|
|
||||||
"all returned objects will be overwritten
|
"all returned objects will be overwritten
|
||||||
zcl_abapgit_popups=>popup_to_select_from_list(
|
zcl_abapgit_popups=>popup_to_select_from_list(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user