Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/DiffusionLintSaveRunner.php
Show First 20 Lines • Show All 251 Lines • ▼ Show 20 Lines | private function blameAuthors() { | ||||
foreach ($this->blame as $path => $lines) { | foreach ($this->blame as $path => $lines) { | ||||
$drequest = DiffusionRequest::newFromDictionary(array( | $drequest = DiffusionRequest::newFromDictionary(array( | ||||
'user' => PhabricatorUser::getOmnipotentUser(), | 'user' => PhabricatorUser::getOmnipotentUser(), | ||||
'repository' => $repository, | 'repository' => $repository, | ||||
'branch' => $this->branch->getName(), | 'branch' => $this->branch->getName(), | ||||
'path' => $path, | 'path' => $path, | ||||
'commit' => $this->lintCommit, | 'commit' => $this->lintCommit, | ||||
)); | )); | ||||
$query = DiffusionFileContentQuery::newFromDiffusionRequest($drequest) | |||||
->setNeedsBlame(true); | // TODO: Restore blame information / generally fix this workflow. | ||||
$query = DiffusionFileContentQuery::newFromDiffusionRequest($drequest); | |||||
$queries[$path] = $query; | $queries[$path] = $query; | ||||
$futures[$path] = $query->getFileContentFuture(); | $futures[$path] = $query->getFileContentFuture(); | ||||
} | } | ||||
$authors = array(); | $authors = array(); | ||||
$futures = id(new FutureIterator($futures)) | $futures = id(new FutureIterator($futures)) | ||||
->limit(8); | ->limit(8); | ||||
Show All 37 Lines |