{"record":{"id":"ab670c6b4a9e3534","repo":"phacility/phabricator","slug":"enormous-change-enormous-change-protection-is-enab","errorCode":null,"errorMessage":"ENORMOUS CHANGE\nEnormous change protection is enabled for this repository, but you are pushing an enormous change (\"%s\"). Edit the repository configuration before making enormous changes.\n\nContent Exception: %s","messagePattern":"ENORMOUS CHANGE\nEnormous change protection is enabled for this repository, but you are pushing an enormous change \\(\"(.+?)\"\\)\\. Edit the repository configuration before making enormous changes\\.\n\nContent Exception: (.+?)","errorType":"exception","errorClass":"DiffusionCommitHookRejectException","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/engine/DiffusionCommitHookEngine.php","lineNumber":1179,"sourceCode":"        if ($this->changesetsSize + $size <= $cache_limit) {\n          $this->changesets[$identifier] = $changesets;\n          $this->changesetsSize += $size;\n        }\n      } catch (Exception $ex) {\n        $this->changesets[$identifier] = $ex;\n\n        $message = pht(\n          'ENORMOUS CHANGE'.\n          \"\\n\".\n          'Enormous change protection is enabled for this repository, but '.\n          'you are pushing an enormous change (\"%s\"). Edit the repository '.\n          'configuration before making enormous changes.'.\n          \"\\n\\n\".\n          \"Content Exception: %s\",\n          $identifier,\n          $ex->getMessage());\n\n        throw new DiffusionCommitHookRejectException($message);\n      }\n    }\n  }\n\n  private function loadChangesetsForCommit($identifier) {\n    $byte_limit = HeraldCommitAdapter::getEnormousByteLimit();\n    $time_limit = HeraldCommitAdapter::getEnormousTimeLimit();\n\n    $vcs = $this->getRepository()->getVersionControlSystem();\n    switch ($vcs) {\n      case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:\n      case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:\n        // For git and hg, we can use normal commands.\n        $drequest = DiffusionRequest::newFromDictionary(\n          array(\n            'repository' => $this->getRepository(),\n            'user' => $this->getViewer(),\n            'commit' => $identifier,","sourceCodeStart":1161,"sourceCodeEnd":1197,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/engine/DiffusionCommitHookEngine.php#L1161-L1197","documentation":"Error \"ENORMOUS CHANGE\nEnormous change protection is enabled for this repository, but you are pushing an enormous change (\"%s\"). Edit the repository configuration before making enormous changes.\n\nContent Exception: %s\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/engine/DiffusionCommitHookEngine.php:1179 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}