{"record":{"id":"7fa7e07190b34de2","repo":"phacility/phabricator","slug":"commit-s-does-not-exist-or-is-ambiguous","errorCode":null,"errorMessage":"Commit \"%s\" does not exist or is ambiguous.","messagePattern":"Commit \"(.+?)\" does not exist or is ambiguous\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/repository/management/PhabricatorRepositoryManagementWorkflow.php","lineNumber":91,"sourceCode":"    return $this->loadNamedCommits($names);\n  }\n\n  protected function loadNamedCommit($name) {\n    $map = $this->loadNamedCommits(array($name));\n    return $map[$name];\n  }\n\n  protected function loadNamedCommits(array $names) {\n    $query = id(new DiffusionCommitQuery())\n      ->setViewer($this->getViewer())\n      ->withIdentifiers($names);\n\n    $query->execute();\n    $map = $query->getIdentifierMap();\n\n    foreach ($names as $name) {\n      if (empty($map[$name])) {\n        throw new PhutilArgumentUsageException(\n          pht('Commit \"%s\" does not exist or is ambiguous.', $name));\n      }\n    }\n\n    return $map;\n  }\n\n\n}\n","sourceCodeStart":73,"sourceCodeEnd":101,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/repository/management/PhabricatorRepositoryManagementWorkflow.php#L73-L101","documentation":"Raised in PhabricatorRepositoryManagementWorkflow::loadNamedCommits when a commit name given on the command line is absent from the DiffusionCommitQuery identifier map — the identifier does not resolve to an existing commit or is ambiguous (e.g. a short hash matching multiple commits).","triggerScenarios":"Thrown at src/applications/repository/management/PhabricatorRepositoryManagementWorkflow.php:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a longer or full commit identifier to disambiguate.","Confirm the commit exists and has been imported in that repository."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}