From 2234c8cacc21ce61c9c10e8e5918b6a63cc38fc8 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 16 May 2016 12:54:37 +0000 Subject: [PATCH] Fix `arc which` for svn repos MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } } -- 2.43.0