Fix setting diff types and avoid generating stats for binary diffs.

Review Request #11771 — Created Aug. 3, 2021 and submitted

Information

DiffX
master

Reviewers

When setting a file as binary using the DOM, writing it out would fail,
due to the wrong parameter being passed to DiffXWriter.write_diff().
This needed to be diff_type=, but it was being passed as type=. We
now use the option remapping support in DiffXDOMWriter to pass the
correct argument.

Statistics were also being generated for binary diffs, which didn't make
any sense. We now skip generating stats for these.

Unit tests pass on Python 2 and 3.

Verified this fix in production.

Summary ID
Fix setting diff types and avoid generating stats for binary diffs.
When setting a file as binary using the DOM, writing it out would fail, due to the wrong parameter being passed to `DiffXWriter.write_diff()`. This needed to be `diff_type=`, but it was being passed as `type=`. We now use the option remapping support in `DiffXDOMWriter` to pass the correct argument. Statistics were also being generated for binary diffs, which didn't make any sense. We now skip generating stats for these.
f27045379ab2f7420bf879922ad4990cefaea2d6
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (c6b4888)
Loading...