cherrypick cache repo results (#280)

This commit is contained in:
sbcgua 2016-10-03 09:08:25 +03:00
parent 7f3a665756
commit a6a7523b0b
3 changed files with 19 additions and 17 deletions

View File

@ -39,13 +39,10 @@ CLASS lcl_file_status IMPLEMENTATION.
READ TABLE it_repo WITH KEY
path = is_gen-path
filename = is_gen-filename
data = is_gen-data
sha1 = is_gen-sha1
TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
rv_match = abap_false.
ELSE.
rv_match = abap_true.
ENDIF.
rv_match = boolc( sy-subrc = 0 ).
ENDMETHOD. "compare_files

View File

@ -121,7 +121,8 @@ CLASS lcl_repo_online DEFINITION INHERITING FROM lcl_repo FINAL.
mt_objects TYPE ty_objects_tt,
mv_branch TYPE ty_sha1,
mv_initialized TYPE abap_bool,
mo_branches TYPE REF TO lcl_git_branch_list.
mo_branches TYPE REF TO lcl_git_branch_list,
mt_status TYPE ty_results_tt.
METHODS:
handle_stage_ignore

View File

@ -42,8 +42,11 @@ CLASS lcl_repo_online IMPLEMENTATION.
initialize( ).
rt_results = lcl_file_status=>status( io_repo = me
IF lines( mt_status ) = 0.
mt_status = lcl_file_status=>status( io_repo = me
io_log = io_log ).
ENDIF.
rt_results = mt_status.
ENDMETHOD. "status
@ -66,6 +69,7 @@ CLASS lcl_repo_online IMPLEMENTATION.
METHOD refresh.
super->refresh( ).
CLEAR mt_status.
lcl_progress=>show( iv_key = 'Fetch'
iv_current = 1