{"record":{"id":"eb6ee5c4a72640c0","repo":"phacility/phabricator","slug":"the-raw-text-of-this-change-s-is-enormous-la","errorCode":null,"errorMessage":"The raw text of this change (\"%s\") is enormous (larger than %s bytes).","messagePattern":"The raw text of this change \\(\"(.+?)\"\\) is enormous \\(larger than (.+?) bytes\\)\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/engine/DiffusionCommitHookEngine.php","lineNumber":1229,"sourceCode":"\n        // For subversion, we need to use `svnlook`.\n        $future = new ExecFuture(\n          'svnlook diff -t %s %s',\n          $this->subversionTransaction,\n          $this->subversionRepository);\n\n        $future->setTimeout($time_limit);\n        $future->setStdoutSizeLimit($byte_limit);\n        $future->setStderrSizeLimit($byte_limit);\n\n        list($raw_diff) = $future->resolvex();\n        break;\n      default:\n        throw new Exception(pht(\"Unknown VCS '%s!'\", $vcs));\n    }\n\n    if (strlen($raw_diff) >= $byte_limit) {\n      throw new Exception(\n        pht(\n          'The raw text of this change (\"%s\") is enormous (larger than %s '.\n          'bytes).',\n          $identifier,\n          new PhutilNumber($byte_limit)));\n    }\n\n    if (!strlen($raw_diff)) {\n      // If the commit is actually empty, just return no changesets.\n      return array(array(), 0);\n    }\n\n    $parser = new ArcanistDiffParser();\n    $changes = $parser->parseDiff($raw_diff);\n    $diff = DifferentialDiff::newEphemeralFromRawChanges(\n      $changes);\n\n    $changesets = $diff->getChangesets();","sourceCodeStart":1211,"sourceCodeEnd":1247,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/engine/DiffusionCommitHookEngine.php#L1211-L1247","documentation":"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.","triggerScenarios":"Thrown at src/applications/diffusion/engine/DiffusionCommitHookEngine.php:1229 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Break the change into smaller commits so each diff stays under the limit","Increase the byte limit / enormous-change settings in repository configuration","Remove bulky generated files or vendored blobs from the commit"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}