Changeset View
Changeset View
Standalone View
Standalone View
src/browse/workflow/ArcanistBrowseWorkflow.php
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | public function runWorkflow() { | ||||
| $is_force = $this->getArgument('force'); | $is_force = $this->getArgument('force'); | ||||
| if ($is_force) { | if ($is_force) { | ||||
| // TODO: Remove this completely. | // TODO: Remove this completely. | ||||
| $this->writeWarn( | $this->writeWarn( | ||||
| pht('DEPRECATED'), | pht('DEPRECATED'), | ||||
| pht( | pht( | ||||
| 'Argument "--force" for "arc browse" is deprecated. Use '. | 'Argument "--force" for "arc browse" is deprecated. Use '. | ||||
| '"--type %s" instead.', | '"--type %s" instead.', | ||||
| ArcanistBrowsePathURIHardpointLoader::BROWSETYPE)); | ArcanistBrowsePathURIHardpointQuery::BROWSETYPE)); | ||||
| } | } | ||||
| $types = $this->getArgument('types'); | $types = $this->getArgument('types'); | ||||
| if ($types !== null) { | if ($types !== null) { | ||||
| $types = preg_split('/[\s,]+/', $types); | $types = preg_split('/[\s,]+/', $types); | ||||
| } else { | } else { | ||||
| if ($is_force) { | if ($is_force) { | ||||
| $types = array(ArcanistBrowsePathURIHardpointLoader::BROWSETYPE); | $types = array(ArcanistBrowsePathURIHardpointQuery::BROWSETYPE); | ||||
| } else { | } else { | ||||
| $types = array(); | $types = array(); | ||||
| } | } | ||||
| } | } | ||||
| foreach ($refs as $ref) { | foreach ($refs as $ref) { | ||||
| $ref->setTypes($types); | $ref->setTypes($types); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines | |||||