From c75b671b221add586eb4e61ff453357bbe140e8e Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 7 Jun 2016 13:44:45 -0700 Subject: [PATCH] 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 --- src/difference/ArcanistDiffUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }