From: epriestley Date: Tue, 7 Jun 2016 20:44:45 +0000 (-0700) Subject: Use "internal" smoothing for code diffs in Arcanist X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c75b671b221add586eb4e61ff453357bbe140e8e;p=arcanist.git Use "internal" smoothing for code diffs in Arcanist Summary: Ref T7643. This moves the prefix/suffix smoothing behavior back to the old one, which seems better for code diffs. Test Plan: `arc unit --everything` Reviewers: chad Reviewed By: chad Maniphest Tasks: T7643 Differential Revision: https://secure.phabricator.com/D16074 --- diff --git a/src/difference/ArcanistDiffUtils.php b/src/difference/ArcanistDiffUtils.php index f09573a1..111f9d02 100644 --- a/src/difference/ArcanistDiffUtils.php +++ b/src/difference/ArcanistDiffUtils.php @@ -151,7 +151,7 @@ final class ArcanistDiffUtils extends Phobject { ->setReplaceCost(2) ->setMaximumLength($max) ->setSequences($ov, $nv) - ->setApplySmoothing(true) + ->setApplySmoothing(PhutilEditDistanceMatrix::SMOOTHING_INTERNAL) ->getEditString(); }