{"record":{"id":"d728df06c39f7b81","repo":"phacility/phabricator","slug":"you-can-not-reclaim-this-revision-because-it-has-n","errorCode":null,"errorMessage":"You can not reclaim this revision because it has not been abandoned. Only abandoned revisions can be reclaimed.","messagePattern":"You can not reclaim this revision because it has not been abandoned\\. Only abandoned revisions can be reclaimed\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/differential/xaction/DifferentialRevisionReclaimTransaction.php","lineNumber":64,"sourceCode":"    return pht('Reclaim a revision.');\n  }\n\n  public function generateOldValue($object) {\n    return !$object->isAbandoned();\n  }\n\n  public function applyInternalEffects($object, $value) {\n    if ($object->getShouldBroadcast()) {\n      $new_status = DifferentialRevisionStatus::NEEDS_REVIEW;\n    } else {\n      $new_status = DifferentialRevisionStatus::DRAFT;\n    }\n    $object->setModernRevisionStatus($new_status);\n  }\n\n  protected function validateAction($object, PhabricatorUser $viewer) {\n    if (!$object->isAbandoned()) {\n      throw new Exception(\n        pht(\n          'You can not reclaim this revision because it has not been '.\n          'abandoned. Only abandoned revisions can be reclaimed.'));\n    }\n\n    if (!$this->isViewerRevisionAuthor($object, $viewer)) {\n      throw new Exception(\n        pht(\n          'You can not reclaim this revision because you are not the '.\n          'revision author. You can only reclaim revisions you own.'));\n    }\n  }\n\n  public function getTitle() {\n    return pht(\n      '%s reclaimed this revision.',\n      $this->renderAuthor());\n  }","sourceCodeStart":46,"sourceCodeEnd":82,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/xaction/DifferentialRevisionReclaimTransaction.php#L46-L82","documentation":"State guard in DifferentialRevisionReclaimTransaction::validateAction: reclaim (returning an abandoned revision to review) is refused because the revision is not currently abandoned (isAbandoned returned false). Reclaim is only defined as the inverse of abandon, so open or published revisions have nothing to reclaim and the transition is rejected.","triggerScenarios":"Thrown at src/applications/differential/xaction/DifferentialRevisionReclaimTransaction.php:64 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the revision status: if it is open there is nothing to reclaim","If the revision was closed by landing (published), create a new revision for follow-up work instead of reclaiming","Ensure you are acting on the intended revision and that its status has not changed since the page was loaded"],"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"}