{"record":{"id":"92f5d50e86baf924","repo":"phacility/phabricator","slug":"you-can-not-commandeer-this-revision-because-you-a","errorCode":null,"errorMessage":"You can not commandeer this revision because you are already the author.","messagePattern":"You can not commandeer this revision because you are already the author\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/differential/xaction/DifferentialRevisionCommandeerTransaction.php","lineNumber":83,"sourceCode":"    // If a revision has already landed, we generally want to discourage\n    // reopening and reusing it since this tends to create a big mess (users\n    // should create a new revision instead). Thus, we stop you from\n    // commandeering closed revisions.\n\n    // See PHI985. If the revision was abandoned, there's no peril in allowing\n    // the commandeer since the change (likely) never actually landed. So\n    // it's okay to commandeer abandoned revisions.\n\n    if ($object->isClosed() && !$object->isAbandoned()) {\n      throw new Exception(\n        pht(\n          'You can not commandeer this revision because it has already '.\n          'been closed. You can only commandeer open or abandoned '.\n          'revisions.'));\n    }\n\n    if ($this->isViewerRevisionAuthor($object, $viewer)) {\n      throw new Exception(\n        pht(\n          'You can not commandeer this revision because you are already '.\n          'the author.'));\n    }\n  }\n\n  public function getTitle() {\n    return pht(\n      '%s commandeered this revision.',\n      $this->renderAuthor());\n  }\n\n  public function getTitleForFeed() {\n    return pht(\n      '%s commandeered %s.',\n      $this->renderAuthor(),\n      $this->renderObject());\n  }","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/xaction/DifferentialRevisionCommandeerTransaction.php#L65-L101","documentation":"Sanity guard inside DifferentialRevisionCommandeerTransaction::validateAction(): the acting viewer is already the revision author, so commandeer is a no-op. Commandeer transfers ownership of a revision to the acting user; if isViewerRevisionAuthor is true there is nothing to transfer and the transaction is rejected to avoid a pointless author change.","triggerScenarios":"Thrown at src/applications/differential/xaction/DifferentialRevisionCommandeerTransaction.php:83 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["No action required: you already own the revision","If you expected someone else to own it, check the revision details page to see the current author (it may have been commandeered previously)","If acting via API, ensure the actor parameter is the user who should take ownership, not the current author"],"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"}