]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix `arc which` for svn repos
authorepriestley <git@epriestley.com>
Mon, 16 May 2016 12:54:37 +0000 (12:54 +0000)
committereadler <autocommitter@example.com>
Mon, 16 May 2016 12:54:37 +0000 (12:54 +0000)
Summary:
`arc which` is currently broken for svn repos.

Fixes T6635

(I think I independently wrote an identical change to yours)

Test Plan: `∴../../p/arcanist/bin/arc which` on a svn repo.

Reviewers: aik099, epriestley, #blessed_reviewers

Reviewed By: aik099, epriestley, #blessed_reviewers

Subscribers: aik099, Korvin

Maniphest Tasks: T6635

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

src/repository/api/ArcanistSubversionAPI.php

index f5768b14d66cb5e8692290ca08f49392c86857b5..169f66ea9f1c477147396972b0061b0b0c0e245b 100644 (file)
@@ -651,7 +651,7 @@ EODIFF;
     $results = $conduit->callMethodSynchronous('differential.query', $query);
 
     foreach ($results as $key => $result) {
-      if ($result['sourcePath'] != $this->getPath()) {
+      if (idx($result, 'sourcePath') != $this->getPath()) {
         unset($results[$key]);
       }
     }