mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +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) {
|
private function loadDifferentialStatuses($rev_ids) {
|
||||||
$conduit = $this->getConduit();
|
$conduit = $this->getConduit();
|
||||||
$revision_future = $conduit->callMethod(
|
$revisions = $conduit->callMethodSynchronous(
|
||||||
'differential.find',
|
'differential.query',
|
||||||
array(
|
array(
|
||||||
'guids' => $rev_ids,
|
'ids' => $rev_ids,
|
||||||
'query' => 'revision-ids',
|
|
||||||
));
|
));
|
||||||
$revisions = array();
|
$statuses = ipull($revisions, 'statusName', 'id');
|
||||||
foreach ($revision_future->resolve() as $revision_dict) {
|
|
||||||
$revisions[] = ArcanistDifferentialRevisionRef::newFromDictionary(
|
|
||||||
$revision_dict);
|
|
||||||
}
|
|
||||||
$statuses = mpull($revisions, 'getStatusName', 'getId');
|
|
||||||
return $statuses;
|
return $statuses;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
|
|
||||||
phutil_require_module('arcanist', 'branch');
|
phutil_require_module('arcanist', 'branch');
|
||||||
phutil_require_module('arcanist', 'differential/revision');
|
|
||||||
phutil_require_module('arcanist', 'exception/usage');
|
phutil_require_module('arcanist', 'exception/usage');
|
||||||
phutil_require_module('arcanist', 'workflow/base');
|
phutil_require_module('arcanist', 'workflow/base');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue