{"record":{"id":"667919f32b7b62f2","repo":"phacility/phabricator","slug":"oversized-file-this-repository-s-is-configure","errorCode":null,"errorMessage":"OVERSIZED FILE\nThis repository (\"%s\") is configured with a maximum individual file size limit, but you are pushing a change (\"%s\") which causes the size of a file (\"%s\") to exceed the limit. The commit makes the file %s bytes long, but the limit for this repository is %s bytes.","messagePattern":"OVERSIZED FILE\nThis repository \\(\"(.+?)\"\\) is configured with a maximum individual file size limit, but you are pushing a change \\(\"(.+?)\"\\) which causes the size of a file \\(\"(.+?)\"\\) to exceed the limit\\. The commit makes the file (.+?) bytes long, but the limit for this repository is (.+?) bytes\\.","errorType":"exception","errorClass":"DiffusionCommitHookRejectException","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/engine/DiffusionCommitHookEngine.php","lineNumber":1301,"sourceCode":"        if ($size <= $limit) {\n          continue;\n        }\n\n        $message = pht(\n          'OVERSIZED FILE'.\n          \"\\n\".\n          'This repository (\"%s\") is configured with a maximum individual '.\n          'file size limit, but you are pushing a change (\"%s\") which causes '.\n          'the size of a file (\"%s\") to exceed the limit. The commit makes '.\n          'the file %s bytes long, but the limit for this repository is '.\n          '%s bytes.',\n          $repository->getDisplayName(),\n          $identifier,\n          $path,\n          new PhutilNumber($size),\n          new PhutilNumber($limit));\n\n        throw new DiffusionCommitHookRejectException($message);\n      }\n    }\n  }\n\n  private function rejectCommitsAffectingTooManyPaths(array $content_updates) {\n    $repository = $this->getRepository();\n\n    $limit = $repository->getTouchLimit();\n    if (!$limit) {\n      return;\n    }\n\n    foreach ($content_updates as $update) {\n      $identifier = $update->getRefNew();\n\n      $sizes = $this->getFileSizesForCommit($identifier);\n      if (count($sizes) > $limit) {\n        $message = pht(","sourceCodeStart":1283,"sourceCodeEnd":1319,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/engine/DiffusionCommitHookEngine.php#L1283-L1319","documentation":"Error \"OVERSIZED FILE\nThis repository (\"%s\") is configured with a maximum individual file size limit, but you are pushing a change (\"%s\") which causes the size of a file (\"%s\") to exceed the limit. The commit makes the file %s bytes long, but the limit for this repository is %s bytes.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/engine/DiffusionCommitHookEngine.php:1301 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"}