]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove sourcePath references from Arcanist
authorepriestley <git@epriestley.com>
Mon, 6 Feb 2012 21:08:08 +0000 (13:08 -0800)
committerepriestley <git@epriestley.com>
Mon, 6 Feb 2012 21:08:08 +0000 (13:08 -0800)
Summary: These are meaningless / unreachable after D1491 and nonsense after
D1582. Depends on D1579.

Test Plan: Grepped for 'sourcePath' references.

Reviewers: arice, btrahan

Reviewed By: arice

CC: aran, epriestley
Maniphest Tasks: T838

Differential Revision: https://secure.phabricator.com/D1584

src/differential/revision/ArcanistDifferentialRevisionRef.php
src/workflow/base/ArcanistBaseWorkflow.php

index 03796c68ed69167769da93bf3634add7bad33ef2..be8ab60f62432f06a855b559b15994e9fdfaf161 100644 (file)
@@ -26,14 +26,12 @@ final class ArcanistDifferentialRevisionRef {
   protected $id;
   protected $name;
   protected $statusName;
-  protected $sourcePath;
 
   public static function newFromDictionary(array $dictionary) {
     $ref = new ArcanistDifferentialRevisionRef();
     $ref->id         = $dictionary['id'];
     $ref->name       = $dictionary['name'];
     $ref->statusName = $dictionary['statusName'];
-    $ref->sourcePath = $dictionary['sourcePath'];
     return $ref;
   }
 
@@ -53,8 +51,4 @@ final class ArcanistDifferentialRevisionRef {
     return $this->statusName;
   }
 
-  public function getSourcePath() {
-    return $this->sourcePath;
-  }
-
 }
index c51820580c58e82d544063c532ab18a8b0494b48..9a9df5974d27e304721e5a26fe3ee845afee5871 100644 (file)
@@ -688,14 +688,7 @@ abstract class ArcanistBaseWorkflow {
 
     $repository_api = $this->getRepositoryAPI();
 
-    $candidates = array();
-    $cur_path = $repository_api->getPath();
-    foreach ($revisions as $revision) {
-      $source_path = $revision->getSourcePath();
-      if ($source_path == $cur_path) {
-        $candidates[] = $revision;
-      }
-    }
+    $candidates = $revisions;
 
     if (count($candidates) == 1) {
       $candidate = reset($candidates);