Differential D10585 Diff 25583 src/applications/diffusion/controller/DiffusionRepositoryController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionRepositoryController.php
| Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | private function buildNormalContent(DiffusionRequest $drequest) { | ||||
| try { | try { | ||||
| $history_results = $this->callConduitWithDiffusionRequest( | $history_results = $this->callConduitWithDiffusionRequest( | ||||
| 'diffusion.historyquery', | 'diffusion.historyquery', | ||||
| array( | array( | ||||
| 'commit' => $drequest->getCommit(), | 'commit' => $drequest->getCommit(), | ||||
| 'path' => $drequest->getPath(), | 'path' => $drequest->getPath(), | ||||
| 'offset' => 0, | 'offset' => 0, | ||||
| 'limit' => 15)); | 'limit' => 15, | ||||
| )); | |||||
| $history = DiffusionPathChange::newFromConduit( | $history = DiffusionPathChange::newFromConduit( | ||||
| $history_results['pathChanges']); | $history_results['pathChanges']); | ||||
| foreach ($history as $item) { | foreach ($history as $item) { | ||||
| $data = $item->getCommitData(); | $data = $item->getCommitData(); | ||||
| if ($data) { | if ($data) { | ||||
| if ($data->getCommitDetail('authorPHID')) { | if ($data->getCommitDetail('authorPHID')) { | ||||
| $phids[$data->getCommitDetail('authorPHID')] = true; | $phids[$data->getCommitDetail('authorPHID')] = true; | ||||
| ▲ Show 20 Lines • Show All 604 Lines • Show Last 20 Lines | |||||