Method: Ruvi::EditorApp::DiffLogger::DifferenceLog#flush

Defined in:
lib/timemachine.rb

#flushObject



111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/timemachine.rb', line 111

def flush
    return partial_flush if @partial_flush_mode
    start_val = 0
    if !@partial_flush_last_count.nil?
        start_val = @partial_flush_last_count
        @partial_flush_last_count = nil
    end
    return if @diffs.empty?
    do_flush @diffs.slice(start_val..-1)
    if @ids2changesets.has_key? inc_id(@current_patch_num)
        @current_patch_num = branch_id @current_patch_num
    else
        @current_patch_num = inc_id @current_patch_num
    end
    @last_followed_branch = @current_patch_num
    logline "FLUSHED_CHANGESET #{@current_patch_num}"
    @ids2changesets[@current_patch_num] = @diffs
    @diffs = []
end