Fix setting diff types and avoid generating stats for binary diffs.
Review Request #11771 — Created Aug. 3, 2021 and submitted — Latest diff uploaded
When setting a file as binary using the DOM, writing it out would fail,
due to the wrong parameter being passed to
This needed to be
diff_type=, but it was being passed as
now use the option remapping support in
DiffXDOMWriterto pass the
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.