phacility/phabricator · error · Exception

The raw text of this change

Error message

The raw text of this change ("%s") is enormous (larger than %s bytes).

What it means

Raised by loadChangesetsForCommit while computing the raw diff text for a commit (via git diff, hg, or svnlook per VCS): the produced diff met or exceeded the configured byte limit (stdout size limit). It means the change is too large for the hook engine to inspect, which then feeds into enormous-change rejection.

Solutions

  1. Break the change into smaller commits so each diff stays under the limit
  2. Increase the byte limit / enormous-change settings in repository configuration
  3. Remove bulky generated files or vendored blobs from the commit
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/diffusion/engine/DiffusionCommitHookEngine.php:1229 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/eb6ee5c4a72640c0. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/diffusion/engine/DiffusionCommitHookEngine.php:1229

        // For subversion, we need to use `svnlook`.
        $future = new ExecFuture(
          'svnlook diff -t %s %s',
          $this->subversionTransaction,
          $this->subversionRepository);

        $future->setTimeout($time_limit);
        $future->setStdoutSizeLimit($byte_limit);
        $future->setStderrSizeLimit($byte_limit);

        list($raw_diff) = $future->resolvex();
        break;
      default:
        throw new Exception(pht("Unknown VCS '%s!'", $vcs));
    }

    if (strlen($raw_diff) >= $byte_limit) {
      throw new Exception(
        pht(
          'The raw text of this change ("%s") is enormous (larger than %s '.
          'bytes).',
          $identifier,
          new PhutilNumber($byte_limit)));
    }

    if (!strlen($raw_diff)) {
      // If the commit is actually empty, just return no changesets.
      return array(array(), 0);
    }

    $parser = new ArcanistDiffParser();
    $changes = $parser->parseDiff($raw_diff);
    $diff = DifferentialDiff::newEphemeralFromRawChanges(
      $changes);

    $changesets = $diff->getChangesets();

View on GitHub (pinned to 5720a38cfe)