reviewboard.diffviewer.processors¶
-
filter_interdiff_opcodes
(opcodes, filediff_data, interfilediff_data)[source]¶ Filters the opcodes for an interdiff to remove unnecessary lines.
An interdiff may contain lines of code that have changed as the result of updates to the tree between the time that the first and second diff were created. This leads to some annoyances when reviewing.
This function will filter the opcodes to remove as much of this as possible. It will only output non-“equal” opcodes if it falls into the ranges of lines dictated in the uploaded diff files.
-
post_process_filtered_equals
(opcodes)[source]¶ Post-processes filtered-equal and equal chunks from interdiffs.
Any filtered-out “filtered-equal” chunks will get turned back into “equal” chunks and merged into any prior equal chunks. Likewise, simple “equal” chunks will also get merged.
“equal” chunks that have any indentation information will remain their own chunks, with nothing merged in.