]> khamidou — GitHub mirrors - arcanist.git/commit
Use EditDistanceMatrix diff smoothing in Arcanist
authorepriestley <git@epriestley.com>
Tue, 7 Jun 2016 15:22:03 +0000 (08:22 -0700)
committerepriestley <git@epriestley.com>
Tue, 7 Jun 2016 16:13:34 +0000 (09:13 -0700)
commit41e8e30e8c136a7ff25a247aeec7ed74d54b349e
tree6dd92fd73a11aa0398c0d1ac34b5f9c0a291787b
parentca33240942597932075f8e715628b36eebbe68ce
Use EditDistanceMatrix diff smoothing in Arcanist

Summary:
Ref T7643. We've done the smoothing from D16068 for a long time, it just wasn't part of EditDistanceMatrix.

Since it now is, call it instead of keeping a copy of the logic around.

Previously, the unit tests were testing un-smoothed diffs. Just have them test smoothed diffs instead, since nothing actually uses unsmoothed diffs.

Test Plan: Pasted a raw diff into the web UI, got a sensible inline diff for it.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T7643

Differential Revision: https://secure.phabricator.com/D16069
src/difference/ArcanistDiffUtils.php
src/difference/__tests__/ArcanistDiffUtilsTestCase.php