phacility/phabricator · error · Exception

You can not commandeer this revision because it has already

Error message

You can not commandeer this revision because it has already been closed. You can only commandeer open or abandoned revisions.

What it means

Error "You can not commandeer this revision because it has already been closed. You can only commandeer open or abandoned revisions." thrown in phacility/phabricator.

Source

Thrown at src/applications/differential/xaction/DifferentialRevisionCommandeerTransaction.php:75

    return $actor->getPHID();
  }

  public function applyInternalEffects($object, $value) {
    $object->setAuthorPHID($value);
  }

  protected function validateAction($object, PhabricatorUser $viewer) {
    // If a revision has already landed, we generally want to discourage
    // reopening and reusing it since this tends to create a big mess (users
    // should create a new revision instead). Thus, we stop you from
    // commandeering closed revisions.

    // See PHI985. If the revision was abandoned, there's no peril in allowing
    // the commandeer since the change (likely) never actually landed. So
    // it's okay to commandeer abandoned revisions.

    if ($object->isClosed() && !$object->isAbandoned()) {
      throw new Exception(
        pht(
          'You can not commandeer this revision because it has already '.
          'been closed. You can only commandeer open or abandoned '.
          'revisions.'));
    }

    if ($this->isViewerRevisionAuthor($object, $viewer)) {
      throw new Exception(
        pht(
          'You can not commandeer this revision because you are already '.
          'the author.'));
    }
  }

  public function getTitle() {
    return pht(
      '%s commandeered this revision.',
      $this->renderAuthor());

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/differential/xaction/DifferentialRevisionCommandeerTransaction.php:75 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/2fede878fafc5cf3. Report an issue: GitHub.