]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Arcanist changes related to T2784
authorBob Trahan <bob.trahan@gmail.com>
Tue, 14 May 2013 22:24:20 +0000 (15:24 -0700)
committerBob Trahan <bob.trahan@gmail.com>
Tue, 14 May 2013 22:24:20 +0000 (15:24 -0700)
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

index 48d380f10fdfe19a3b13e15c308f2ca99d1579f5..770ecc86f682602fce494f02eca872626d6fc52e 100644 (file)
@@ -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) {