Differential D12894 Diff 31029 src/applications/differential/controller/DifferentialRevisionViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/controller/DifferentialRevisionViewController.php
Show All 27 Lines | public function processRequest() { | ||||
if (!$revision) { | if (!$revision) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$diffs = id(new DifferentialDiffQuery()) | $diffs = id(new DifferentialDiffQuery()) | ||||
->setViewer($request->getUser()) | ->setViewer($request->getUser()) | ||||
->withRevisionIDs(array($this->revisionID)) | ->withRevisionIDs(array($this->revisionID)) | ||||
->needArcanistProjects(true) | |||||
->execute(); | ->execute(); | ||||
$diffs = array_reverse($diffs, $preserve_keys = true); | $diffs = array_reverse($diffs, $preserve_keys = true); | ||||
if (!$diffs) { | if (!$diffs) { | ||||
throw new Exception( | throw new Exception( | ||||
'This revision has no diffs. Something has gone quite wrong.'); | 'This revision has no diffs. Something has gone quite wrong.'); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 932 Lines • Show Last 20 Lines |