Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/HeraldCommitAdapter.php
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | public function setObject($object) { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $commit_phid = $object->getPHID(); | $commit_phid = $object->getPHID(); | ||||
| $commit = id(new DiffusionCommitQuery()) | $commit = id(new DiffusionCommitQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withPHIDs(array($commit_phid)) | ->withPHIDs(array($commit_phid)) | ||||
| ->needCommitData(true) | ->needCommitData(true) | ||||
| ->needIdentities(true) | ->needIdentities(true) | ||||
| ->needAuditRequests(true) | |||||
| ->executeOne(); | ->executeOne(); | ||||
| if (!$commit) { | if (!$commit) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'Failed to reload commit ("%s") to fetch commit data.', | 'Failed to reload commit ("%s") to fetch commit data.', | ||||
| $commit_phid)); | $commit_phid)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 333 Lines • Show Last 20 Lines | |||||