{"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":"Error \"You can not commandeer this revision because you are already the author.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/differential/xaction/DifferentialRevisionCommandeerTransaction.php:83 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"}