Changeset View
Changeset View
Standalone View
Standalone View
scripts/arcanist.php
| Show First 20 Lines • Show All 189 Lines • ▼ Show 20 Lines | try { | ||||
| $need_conduit = $need_conduit || | $need_conduit = $need_conduit || | ||||
| $need_auth; | $need_auth; | ||||
| $need_working_copy = $need_working_copy || | $need_working_copy = $need_working_copy || | ||||
| $need_repository_api; | $need_repository_api; | ||||
| if ($need_working_copy || $want_working_copy) { | if ($need_working_copy || $want_working_copy) { | ||||
| if ($need_working_copy && !$working_copy->getVCSType()) { | if ($need_working_copy && !$working_copy->getVCSType()) { | ||||
| throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
| "This command must be run in a Git, Mercurial or Subversion working ". | 'This command must be run in a Git, Mercurial or Subversion working '. | ||||
| "copy."); | 'copy.'); | ||||
| } | } | ||||
| $configuration_manager->setWorkingCopyIdentity($working_copy); | $configuration_manager->setWorkingCopyIdentity($working_copy); | ||||
| } | } | ||||
| if ($force_conduit) { | if ($force_conduit) { | ||||
| $conduit_uri = $force_conduit; | $conduit_uri = $force_conduit; | ||||
| } else { | } else { | ||||
| $conduit_uri = $configuration_manager->getConfigFromAnySource( | $conduit_uri = $configuration_manager->getConfigFromAnySource( | ||||
| ▲ Show 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | if ($config_trace_mode) { | ||||
| echo "\n"; | echo "\n"; | ||||
| throw $ex; | throw $ex; | ||||
| } | } | ||||
| if (!$is_usage) { | if (!$is_usage) { | ||||
| echo phutil_console_format( | echo phutil_console_format( | ||||
| "**Exception**\n%s\n%s\n", | "**Exception**\n%s\n%s\n", | ||||
| $ex->getMessage(), | $ex->getMessage(), | ||||
| "(Run with --trace for a full exception trace.)"); | '(Run with --trace for a full exception trace.)'); | ||||
| } | } | ||||
| exit(1); | exit(1); | ||||
| } | } | ||||
| /** | /** | ||||
| * Perform some sanity checks against the possible diversity of PHP builds in | * Perform some sanity checks against the possible diversity of PHP builds in | ||||
| ▲ Show 20 Lines • Show All 264 Lines • Show Last 20 Lines | |||||