1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Quick ircbot differential

Summary: replace differential.find with differential.query and display in requested order

Test Plan: say D444 D222 D443 D442 and ensure they are in the correct order

Reviewers: epriestley

Reviewed By: epriestley

CC: Mnkras, aran

Differential Revision: https://secure.phabricator.com/D2656
This commit is contained in:
KorvinSzanto 2012-06-04 20:05:46 -07:00
parent 8883c9494f
commit 934246675e

View file

@ -100,11 +100,15 @@ final class PhabricatorIRCObjectNameHandler extends PhabricatorIRCHandler {
if ($revision_ids) { if ($revision_ids) {
$revisions = $this->getConduit()->callMethodSynchronous( $revisions = $this->getConduit()->callMethodSynchronous(
'differential.find', 'differential.query',
array( array(
'query' => 'revision-ids', 'query' => 'revision-ids',
'guids' => $revision_ids, 'ids' => $revision_ids,
)); ));
$revisions = array_select_keys(
ipull($revisions, null, 'id'),
$revision_ids
);
foreach ($revisions as $revision) { foreach ($revisions as $revision) {
$output[$revision['phid']] = $output[$revision['phid']] =
'D'.$revision['id'].' '.$revision['name'].' - '. 'D'.$revision['id'].' '.$revision['name'].' - '.