mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 08:52:39 +01:00
Use "differential.query", not "differential.find", in "arc branch"
Summary: find is deprecated, query is new hotness. Test Plan: Ran "arc branch", got identical output. Reviewers: nh, btrahan Reviewed By: btrahan CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1646
This commit is contained in:
parent
506e795fda
commit
964260b1e0
2 changed files with 4 additions and 11 deletions
|
@ -104,18 +104,12 @@ EOTEXT
|
|||
*/
|
||||
private function loadDifferentialStatuses($rev_ids) {
|
||||
$conduit = $this->getConduit();
|
||||
$revision_future = $conduit->callMethod(
|
||||
'differential.find',
|
||||
$revisions = $conduit->callMethodSynchronous(
|
||||
'differential.query',
|
||||
array(
|
||||
'guids' => $rev_ids,
|
||||
'query' => 'revision-ids',
|
||||
'ids' => $rev_ids,
|
||||
));
|
||||
$revisions = array();
|
||||
foreach ($revision_future->resolve() as $revision_dict) {
|
||||
$revisions[] = ArcanistDifferentialRevisionRef::newFromDictionary(
|
||||
$revision_dict);
|
||||
}
|
||||
$statuses = mpull($revisions, 'getStatusName', 'getId');
|
||||
$statuses = ipull($revisions, 'statusName', 'id');
|
||||
return $statuses;
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
|
||||
phutil_require_module('arcanist', 'branch');
|
||||
phutil_require_module('arcanist', 'differential/revision');
|
||||
phutil_require_module('arcanist', 'exception/usage');
|
||||
phutil_require_module('arcanist', 'workflow/base');
|
||||
|
||||
|
|
Loading…
Reference in a new issue