Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/engine/DiffusionCommitHookEngine.php
| Show First 20 Lines • Show All 602 Lines • ▼ Show 20 Lines | foreach ($ref_updates as $key => $ref_update) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| // NOTE: This piece of magic finds all new commits, by walking backward | // NOTE: This piece of magic finds all new commits, by walking backward | ||||
| // from the new value to the value of *any* existing ref in the | // from the new value to the value of *any* existing ref in the | ||||
| // repository. Particularly, this will cover the cases of a new branch, a | // repository. Particularly, this will cover the cases of a new branch, a | ||||
| // completely moved tag, etc. | // completely moved tag, etc. | ||||
| $futures[$key] = $this->getRepository()->getLocalCommandFuture( | $futures[$key] = $this->getRepository()->getLocalCommandFuture( | ||||
| 'log --format=%s %s --not --all', | 'log %s %s --not --all --', | ||||
| '%H', | '--format=%H', | ||||
| $ref_update->getRefNew()); | gitsprintf('%s', $ref_update->getRefNew())); | ||||
| } | } | ||||
| $content_updates = array(); | $content_updates = array(); | ||||
| $futures = id(new FutureIterator($futures)) | $futures = id(new FutureIterator($futures)) | ||||
| ->limit(8); | ->limit(8); | ||||
| foreach ($futures as $key => $future) { | foreach ($futures as $key => $future) { | ||||
| list($stdout) = $future->resolvex(); | list($stdout) = $future->resolvex(); | ||||
| ▲ Show 20 Lines • Show All 858 Lines • Show Last 20 Lines | |||||