Differential D20464 Diff 48838 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 82 Lines • ▼ Show 20 Lines | $this | ||||
| 'instead of deferring them to taskmaster daemons.', | 'instead of deferring them to taskmaster daemons.', | ||||
| '--all'), | '--all'), | ||||
| ), | ), | ||||
| array( | array( | ||||
| 'name' => 'importing', | 'name' => 'importing', | ||||
| 'help' => pht( | 'help' => pht( | ||||
| 'Reparse all steps which have not yet completed.'), | 'Reparse all steps which have not yet completed.'), | ||||
| ), | ), | ||||
| array( | |||||
| 'name' => 'force-autoclose', | |||||
| 'help' => pht( | |||||
| 'Only used with __%s__, use this to make sure any '. | |||||
| 'pertinent diffs are closed regardless of configuration.', | |||||
| '--message'), | |||||
| ), | |||||
| )); | )); | ||||
| } | } | ||||
| public function execute(PhutilArgumentParser $args) { | public function execute(PhutilArgumentParser $args) { | ||||
| $console = PhutilConsole::getConsole(); | $console = PhutilConsole::getConsole(); | ||||
| $all_from_repo = $args->getArg('all'); | $all_from_repo = $args->getArg('all'); | ||||
| ▲ Show 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | foreach ($commits as $commit) { | ||||
| // 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(), | 'commitID' => $commit->getID(), | ||||
| 'only' => !$importing, | 'only' => !$importing, | ||||
| 'forceAutoclose' => $args->getArg('force-autoclose'), | |||||
| ); | ); | ||||
| if ($all_from_repo && !$force_local) { | if ($all_from_repo && !$force_local) { | ||||
| $background = true; | $background = true; | ||||
| } else { | } else { | ||||
| $background = false; | $background = false; | ||||
| } | } | ||||
| Show All 22 Lines | |||||