Changeset View
Changeset View
Standalone View
Standalone View
src/query/ArcanistGitCommitMessageHardpointQuery.php
| Show All 21 Lines | public function loadHardpoint(array $refs, $hardpoint) { | ||||
| // TODO: Update this to use "%B", see T5028. We can also bulk-resolve | // TODO: Update this to use "%B", see T5028. We can also bulk-resolve | ||||
| // these with "git show --quiet --format=... hash hash hash ... --". | // these with "git show --quiet --format=... hash hash hash ... --". | ||||
| $futures = array(); | $futures = array(); | ||||
| foreach ($unique_hashes as $hash) { | foreach ($unique_hashes as $hash) { | ||||
| $futures[$hash] = $api->execFutureLocal( | $futures[$hash] = $api->execFutureLocal( | ||||
| 'log -n1 --format=%s %s --', | 'log -n1 --format=%s %s --', | ||||
| '%s%n%n%b', | '%s%n%n%b', | ||||
| $hash); | gitsprintf('%s', $hash)); | ||||
| } | } | ||||
| yield $this->yieldFutures($futures); | yield $this->yieldFutures($futures); | ||||
| $messages = array(); | $messages = array(); | ||||
| foreach ($futures as $hash => $future) { | foreach ($futures as $hash => $future) { | ||||
| list($stdout) = $future->resolvex(); | list($stdout) = $future->resolvex(); | ||||
| $messages[$hash] = $stdout; | $messages[$hash] = $stdout; | ||||
| Show All 10 Lines | |||||