Differential D21513 Diff 51207 src/applications/repository/management/PhabricatorRepositoryManagementDiscoverWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/management/PhabricatorRepositoryManagementDiscoverWorkflow.php
| <?php | <?php | ||||
| final class PhabricatorRepositoryManagementDiscoverWorkflow | final class PhabricatorRepositoryManagementDiscoverWorkflow | ||||
| extends PhabricatorRepositoryManagementWorkflow { | extends PhabricatorRepositoryManagementWorkflow { | ||||
| protected function didConstruct() { | protected function didConstruct() { | ||||
| $this | $this | ||||
| ->setName('discover') | ->setName('discover') | ||||
| ->setExamples('**discover** [__options__] __repository__ ...') | ->setExamples('**discover** [__options__] __repository__ ...') | ||||
| ->setSynopsis(pht('Discover __repository__.')) | ->setSynopsis(pht('Discover commits in __repository__.')) | ||||
| ->setArguments( | ->setArguments( | ||||
| array( | array( | ||||
| array( | array( | ||||
| 'name' => 'verbose', | 'name' => 'verbose', | ||||
| 'help' => pht('Show additional debugging information.'), | 'help' => pht('Show additional debugging information.'), | ||||
| ), | ), | ||||
| array( | array( | ||||
| 'name' => 'repair', | 'name' => 'repair', | ||||
| 'help' => pht( | 'help' => pht( | ||||
| 'Repair a repository with gaps in commit history.'), | 'Discover all commits, even if they are ancestors of known '. | ||||
| 'commits. This can repair gaps in repository history.'), | |||||
| ), | ), | ||||
| array( | array( | ||||
| 'name' => 'repos', | 'name' => 'repos', | ||||
| 'wildcard' => true, | 'wildcard' => true, | ||||
| ), | ), | ||||
| )); | )); | ||||
| } | } | ||||
| public function execute(PhutilArgumentParser $args) { | public function execute(PhutilArgumentParser $args) { | ||||
| $repos = $this->loadLocalRepositories($args, 'repos'); | $repos = $this->loadLocalRepositories($args, 'repos'); | ||||
| if (!$repos) { | if (!$repos) { | ||||
| Show All 25 Lines | |||||