Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/engine/DiffusionCommitHookEngine.php
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Lines | if ($this->emailPHIDs) { | ||||
// may not exist yet when this worker runs, which could be immediately.) | // may not exist yet when this worker runs, which could be immediately.) | ||||
PhabricatorWorker::scheduleTask( | PhabricatorWorker::scheduleTask( | ||||
'PhabricatorRepositoryPushMailWorker', | 'PhabricatorRepositoryPushMailWorker', | ||||
array( | array( | ||||
'eventPHID' => $event->getPHID(), | 'eventPHID' => $event->getPHID(), | ||||
'emailPHIDs' => array_values($this->emailPHIDs), | 'emailPHIDs' => array_values($this->emailPHIDs), | ||||
'info' => $this->loadCommitInfoForWorker($all_updates), | 'info' => $this->loadCommitInfoForWorker($all_updates), | ||||
)); | ), | ||||
PhabricatorWorker::PRIORITY_ALERTS); | |||||
} | } | ||||
return 0; | return 0; | ||||
} | } | ||||
private function findRefUpdates() { | private function findRefUpdates() { | ||||
$type = $this->getRepository()->getVersionControlSystem(); | $type = $this->getRepository()->getVersionControlSystem(); | ||||
switch ($type) { | switch ($type) { | ||||
▲ Show 20 Lines • Show All 987 Lines • Show Last 20 Lines |