fix filter_files_to_deserialize

in method zcl_abap_objects->filter_files_to_deserialize the object condense is done too early, need to be done at the end
This commit is contained in:
Martin Fuchs 2019-03-13 08:17:46 +00:00 committed by Jakub Filak
parent 48f6cb1bb1
commit 31fc55af56

View File

@ -727,15 +727,15 @@ CLASS ZCL_ABAPGIT_OBJECTS IMPLEMENTATION.
rt_results = it_results.
DELETE rt_results WHERE match = abap_true. " Full match
DELETE rt_results WHERE obj_type IS INITIAL.
DELETE rt_results WHERE lstate = zif_abapgit_definitions=>c_state-added AND rstate IS INITIAL.
SORT rt_results
BY obj_type ASCENDING
obj_name ASCENDING
rstate DESCENDING. " ensures that non-empty rstate is kept
DELETE ADJACENT DUPLICATES FROM rt_results COMPARING obj_type obj_name.
DELETE rt_results WHERE obj_type IS INITIAL.
DELETE rt_results WHERE lstate = zif_abapgit_definitions=>c_state-added AND rstate IS INITIAL.
ENDMETHOD.