phacility/phabricator · error · Exception

You can not reclaim this revision because it has not been…

Error message

You can not reclaim this revision because it has not been abandoned. Only abandoned revisions can be reclaimed.

What it means

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.

Solutions

  1. Check the revision status: if it is open there is nothing to reclaim
  2. If the revision was closed by landing (published), create a new revision for follow-up work instead of reclaiming
  3. Ensure you are acting on the intended revision and that its status has not changed since the page was loaded
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/differential/xaction/DifferentialRevisionReclaimTransaction.php:64 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/d728df06c39f7b81. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/differential/xaction/DifferentialRevisionReclaimTransaction.php:64

    return pht('Reclaim a revision.');
  }

  public function generateOldValue($object) {
    return !$object->isAbandoned();
  }

  public function applyInternalEffects($object, $value) {
    if ($object->getShouldBroadcast()) {
      $new_status = DifferentialRevisionStatus::NEEDS_REVIEW;
    } else {
      $new_status = DifferentialRevisionStatus::DRAFT;
    }
    $object->setModernRevisionStatus($new_status);
  }

  protected function validateAction($object, PhabricatorUser $viewer) {
    if (!$object->isAbandoned()) {
      throw new Exception(
        pht(
          'You can not reclaim this revision because it has not been '.
          'abandoned. Only abandoned revisions can be reclaimed.'));
    }

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

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

View on GitHub (pinned to 5720a38cfe)