Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionCommitController.php
| Show First 20 Lines • Show All 888 Lines • ▼ Show 20 Lines | $merges = $this->callConduitWithDiffusionRequest( | ||||
| array( | array( | ||||
| 'commit' => $drequest->getCommit(), | 'commit' => $drequest->getCommit(), | ||||
| 'limit' => $limit + 1, | 'limit' => $limit + 1, | ||||
| )); | )); | ||||
| if (!$merges) { | if (!$merges) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| $merges = DiffusionPathChange::newFromConduit($merges); | |||||
| $caption = null; | $caption = null; | ||||
| if (count($merges) > $limit) { | if (count($merges) > $limit) { | ||||
| $merges = array_slice($merges, 0, $limit); | $merges = array_slice($merges, 0, $limit); | ||||
| $caption = | $caption = | ||||
| "This commit merges more than {$limit} changes. Only the first ". | "This commit merges more than {$limit} changes. Only the first ". | ||||
| "{$limit} are shown."; | "{$limit} are shown."; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines | |||||