Differential D12894 Diff 31029 src/applications/differential/conduit/DifferentialQueryDiffsConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialQueryDiffsConduitAPIMethod.php
Show All 27 Lines | protected function execute(ConduitAPIRequest $request) { | ||||
$diffs = array(); | $diffs = array(); | ||||
if ($ids || $revision_ids) { | if ($ids || $revision_ids) { | ||||
$diffs = id(new DifferentialDiffQuery()) | $diffs = id(new DifferentialDiffQuery()) | ||||
->setViewer($request->getUser()) | ->setViewer($request->getUser()) | ||||
->withIDs($ids) | ->withIDs($ids) | ||||
->withRevisionIDs($revision_ids) | ->withRevisionIDs($revision_ids) | ||||
->needChangesets(true) | ->needChangesets(true) | ||||
->needArcanistProjects(true) | |||||
->execute(); | ->execute(); | ||||
} | } | ||||
return mpull($diffs, 'getDiffDict', 'getID'); | return mpull($diffs, 'getDiffDict', 'getID'); | ||||
} | } | ||||
} | } |