Differential D21533 Diff 51254 src/applications/repository/management/PhabricatorRepositoryManagementReparseWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/management/PhabricatorRepositoryManagementReparseWorkflow.php
| Show First 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | foreach ($commits as $commit) { | ||||
| $classes[] = 'PhabricatorRepositoryCommitPublishWorker'; | $classes[] = 'PhabricatorRepositoryCommitPublishWorker'; | ||||
| } | } | ||||
| // NOTE: With "--importing", we queue the first unparsed step and let | // NOTE: With "--importing", we queue the first unparsed step and let | ||||
| // it queue the other ones normally. Without "--importing", we queue | // it queue the other ones normally. Without "--importing", we queue | ||||
| // all the requested steps explicitly. | // all the requested steps explicitly. | ||||
| $spec = array( | $spec = array( | ||||
| 'commitID' => $commit->getID(), | 'commitPHID' => $commit->getPHID(), | ||||
| 'only' => !$importing, | 'only' => !$importing, | ||||
| 'via' => 'reparse', | 'via' => 'reparse', | ||||
| ); | ); | ||||
| foreach ($classes as $class) { | foreach ($classes as $class) { | ||||
| try { | try { | ||||
| PhabricatorWorker::scheduleTask( | PhabricatorWorker::scheduleTask( | ||||
| $class, | $class, | ||||
| Show All 28 Lines | |||||