From a45ef76a8f2eb60955a84f48d4ee51b7a53b180f Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Tue, 14 May 2013 15:24:20 -0700 Subject: [PATCH] Arcanist changes related to T2784 Summary: These were in my sandbox, but I forgot about them. Without this things break post D5896. Ref T2784 Test Plan: my sandbox works and soon so shall others Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2784 Differential Revision: https://secure.phabricator.com/D5929 --- src/parser/diff/ArcanistDiffChange.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/parser/diff/ArcanistDiffChange.php b/src/parser/diff/ArcanistDiffChange.php index 48d380f1..770ecc86 100644 --- a/src/parser/diff/ArcanistDiffChange.php +++ b/src/parser/diff/ArcanistDiffChange.php @@ -88,6 +88,14 @@ final class ArcanistDiffChange { return $obj; } + public static function newFromConduit(array $dicts) { + $changes = array(); + foreach ($dicts as $dict) { + $changes[] = self::newFromDictionary($dict); + } + return $changes; + } + public function getChangedLines($type) { $lines = array(); foreach ($this->hunks as $hunk) { -- 2.43.0