phacility/phabricator · error · PhutilArgumentUsageException

Specify one or more repositories to thaw.

Error message

Specify one or more repositories to thaw.

What it means

Usage guard in the repository 'thaw' CLI workflow: fires in the device/service branch when the resolved device selection produced no repositories to act on. Since thaw would affect nothing, the workflow aborts instead of performing an empty unfreeze.

Solutions

  1. Check the repository identifiers (callsigns/short names) for typos.
  2. Confirm the repositories exist with bin/repository list.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/repository/management/PhabricatorRepositoryManagementThawWorkflow.php:131 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/2d69bd7382c03bd1. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/repository/management/PhabricatorRepositoryManagementThawWorkflow.php:131

    $repository_names = $args->getArg('repositories');
    $all_repositories = $args->getArg('all-repositories');
    if ($repository_names && $all_repositories) {
      throw new PhutilArgumentUsageException(
        pht(
          'Specify a list of repositories or "--all-repositories", '.
          'but not both.'));
    } else if (!$repository_names && !$all_repositories) {
      throw new PhutilArgumentUsageException(
        pht(
          'Select repositories to affect by providing a list of repositories '.
          'or using the "--all-repositories" flag.'));
    }

    if ($repository_names) {
      $repositories = $this->loadRepositories($args, 'repositories');
      if (!$repositories) {
        throw new PhutilArgumentUsageException(
          pht('Specify one or more repositories to thaw.'));
      }
    } else {
      $repositories = array();

      $services = id(new AlmanacServiceQuery())
        ->setViewer($viewer)
        ->withDevicePHIDs(mpull($devices, 'getPHID'))
        ->execute();
      if ($services) {
        $repositories = id(new PhabricatorRepositoryQuery())
          ->setViewer($viewer)
          ->withAlmanacServicePHIDs(mpull($services, 'getPHID'))
          ->execute();
      }

      if (!$repositories) {
        throw new PhutilArgumentUsageException(

View on GitHub (pinned to 5720a38cfe)