From: Nick Harper Date: Wed, 29 Aug 2012 18:04:19 +0000 (-0700) Subject: Use paste.query for arc paste X-Git-Tag: conduit-6~146 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4a786f48de48f195c41a1aba815376b64f7cb177;p=arcanist.git Use paste.query for arc paste Summary: paste.info is deprecated; switch to using paste.query Test Plan: arc paste P123 arc paste P123 --json Reviewers: epriestley, vrana Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3402 --- diff --git a/src/workflow/ArcanistPasteWorkflow.php b/src/workflow/ArcanistPasteWorkflow.php index 0a77a4d0..b030a7ad 100644 --- a/src/workflow/ArcanistPasteWorkflow.php +++ b/src/workflow/ArcanistPasteWorkflow.php @@ -119,10 +119,11 @@ EOTEXT $conduit = $this->getConduit(); $info = $conduit->callMethodSynchronous( - 'paste.info', + 'paste.query', array( - 'paste_id' => $this->id, + 'ids' => array($this->id), )); + $info = head($info); if ($this->getJSON()) { echo json_encode($info)."\n";