{"record":{"id":"a17c25e2f21bfea2","repo":"phacility/phabricator","slug":"specify-exactly-one-repository-to-update","errorCode":null,"errorMessage":"Specify exactly one repository to update.","messagePattern":"Specify exactly one repository to update\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/repository/management/PhabricatorRepositoryManagementUpdateWorkflow.php","lineNumber":49,"sourceCode":"          ),\n          array(\n            'name'        => 'no-discovery',\n            'help'        => pht('Do not perform discovery.'),\n          ),\n          array(\n            'name'        => 'repos',\n            'wildcard'    => true,\n          ),\n        ));\n  }\n\n  public function execute(PhutilArgumentParser $args) {\n    $this->setVerbose($args->getArg('verbose'));\n    $console = PhutilConsole::getConsole();\n\n    $repos = $this->loadLocalRepositories($args, 'repos');\n    if (count($repos) !== 1) {\n      throw new PhutilArgumentUsageException(\n        pht('Specify exactly one repository to update.'));\n    }\n\n    $repository = head($repos);\n\n    try {\n      id(new PhabricatorRepositoryPullEngine())\n        ->setRepository($repository)\n        ->setVerbose($this->getVerbose())\n        ->pullRepository();\n\n      $no_discovery = $args->getArg('no-discovery');\n      if ($no_discovery) {\n        return 0;\n      }\n\n      // TODO: It would be nice to discover only if we pulled something, but\n      // this isn't totally trivial. It's slightly more complicated with","sourceCodeStart":31,"sourceCodeEnd":67,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/repository/management/PhabricatorRepositoryManagementUpdateWorkflow.php#L31-L67","documentation":"Error \"Specify exactly one repository to update.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/repository/management/PhabricatorRepositoryManagementUpdateWorkflow.php:49 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}