Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/DiffusionLintSaveRunner.php
| Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | foreach ($this->blame as $path => $lines) { | ||||
| 'path' => $path, | 'path' => $path, | ||||
| 'commit' => $this->lintCommit, | 'commit' => $this->lintCommit, | ||||
| )); | )); | ||||
| // TODO: Restore blame information / generally fix this workflow. | // TODO: Restore blame information / generally fix this workflow. | ||||
| $query = DiffusionFileContentQuery::newFromDiffusionRequest($drequest); | $query = DiffusionFileContentQuery::newFromDiffusionRequest($drequest); | ||||
| $queries[$path] = $query; | $queries[$path] = $query; | ||||
| $futures[$path] = $query->getFileContentFuture(); | $futures[$path] = new ImmediateFuture($query->executeInline()); | ||||
| } | } | ||||
| $authors = array(); | $authors = array(); | ||||
| $futures = id(new FutureIterator($futures)) | $futures = id(new FutureIterator($futures)) | ||||
| ->limit(8); | ->limit(8); | ||||
| foreach ($futures as $path => $future) { | foreach ($futures as $path => $future) { | ||||
| $queries[$path]->loadFileContentFromFuture($future); | $queries[$path]->loadFileContentFromFuture($future); | ||||
| Show All 35 Lines | |||||