Changeset View
Changeset View
Standalone View
Standalone View
scripts/repository/reparse.php
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | foreach ($commits as $commit) { | ||||
$spec = array( | $spec = array( | ||||
'commitID' => $commit->getID(), | 'commitID' => $commit->getID(), | ||||
'only' => true, | 'only' => true, | ||||
); | ); | ||||
if ($all_from_repo && !$force_local) { | if ($all_from_repo && !$force_local) { | ||||
foreach ($classes as $class) { | foreach ($classes as $class) { | ||||
PhabricatorWorker::scheduleTask($class, $spec); | PhabricatorWorker::scheduleTask( | ||||
$class, | |||||
$spec, | |||||
PhabricatorWorker::PRIORITY_IMPORT); | |||||
$commit_name = 'r'.$callsign.$commit->getCommitIdentifier(); | $commit_name = 'r'.$callsign.$commit->getCommitIdentifier(); | ||||
echo " Queued '{$class}' for commit '{$commit_name}'.\n"; | echo " Queued '{$class}' for commit '{$commit_name}'.\n"; | ||||
} | } | ||||
} else { | } else { | ||||
foreach ($classes as $class) { | foreach ($classes as $class) { | ||||
$worker = newv($class, array($spec)); | $worker = newv($class, array($spec)); | ||||
echo "Running '{$class}'...\n"; | echo "Running '{$class}'...\n"; | ||||
Show All 13 Lines |