From: epriestley Date: Mon, 16 May 2016 12:54:37 +0000 (+0000) Subject: Fix `arc which` for svn repos X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=2234c8cacc21ce61c9c10e8e5918b6a63cc38fc8;p=arcanist.git Fix `arc which` for svn repos 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 --- diff --git a/src/repository/api/ArcanistSubversionAPI.php b/src/repository/api/ArcanistSubversionAPI.php index f5768b14..169f66ea 100644 --- a/src/repository/api/ArcanistSubversionAPI.php +++ b/src/repository/api/ArcanistSubversionAPI.php @@ -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]); } }