phacility/phabricator · error · PhutilArgumentUsageException

No such commit " "!

Error message

No such commit "%s"!

What it means

Raised in loadCommits() after a DiffusionCommitQuery: one of the commit identifiers given on the command line did not resolve to a commit in the identifier map. It is a lookup guard meaning the named commit does not exist (or is not visible to the acting administrator).

Solutions

  1. Verify the commit exists in the repository and retry with its full 40-character hash
  2. Ensure the commit has been imported by the repository daemons (check bin/repository workers or the Daemons console)
  3. Make sure the identifier is not a branch name or file path; only commit identifiers are accepted
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/audit/management/PhabricatorAuditManagementDeleteWorkflow.php:323 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/4149d08693a397b9. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/audit/management/PhabricatorAuditManagementDeleteWorkflow.php:323

    return $epoch;
  }

  private function loadCommits($commits) {
    $names = $this->parseList($commits);
    if (!$names) {
      return null;
    }

    $query = id(new DiffusionCommitQuery())
      ->setViewer($this->getViewer())
      ->withIdentifiers($names);

    $commits = $query->execute();

    $map = $query->getIdentifierMap();
    foreach ($names as $name) {
      if (empty($map[$name])) {
        throw new PhutilArgumentUsageException(
          pht('No such commit "%s"!', $name));
      }
    }

    return $commits;
  }

}

View on GitHub (pinned to 5720a38cfe)