{"record":{"id":"8792a900b092a35b","repo":"phacility/phabricator","slug":"no-commit-exists-with-identifier-s","errorCode":null,"errorMessage":"No commit exists with identifier \"%s\".","messagePattern":"No commit exists with identifier \"(.+?)\"\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/conduit/DiffusionUpdateCoverageConduitAPIMethod.php","lineNumber":58,"sourceCode":"    $repository_phid = $request->getValue('repositoryPHID');\n    $repository = id(new PhabricatorRepositoryQuery())\n      ->setViewer($viewer)\n      ->withPHIDs(array($repository_phid))\n      ->executeOne();\n\n    if (!$repository) {\n      throw new Exception(\n        pht('No repository exists with PHID \"%s\".', $repository_phid));\n    }\n\n    $commit_name = $request->getValue('commit');\n    $commit = id(new DiffusionCommitQuery())\n      ->setViewer($viewer)\n      ->withRepository($repository)\n      ->withIdentifiers(array($commit_name))\n      ->executeOne();\n    if (!$commit) {\n      throw new Exception(\n        pht('No commit exists with identifier \"%s\".', $commit_name));\n    }\n\n    $branch = PhabricatorRepositoryBranch::loadOrCreateBranch(\n      $repository->getID(),\n      $request->getValue('branch'));\n\n    $coverage = $request->getValue('coverage');\n    $path_map = id(new DiffusionPathIDQuery(array_keys($coverage)))\n      ->loadPathIDs();\n\n    $conn = $repository->establishConnection('w');\n\n    $sql = array();\n    foreach ($coverage as $path => $coverage_info) {\n      $sql[] = qsprintf(\n        $conn,\n        '(%d, %d, %d, %s)',","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/conduit/DiffusionUpdateCoverageConduitAPIMethod.php#L40-L76","documentation":"Error \"No commit exists with identifier \"%s\".\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/conduit/DiffusionUpdateCoverageConduitAPIMethod.php:58 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"}