]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove the size limit on arc side
authorJason Ge <jungejason@fb.com>
Mon, 25 Jul 2011 23:24:23 +0000 (16:24 -0700)
committerJason Ge <jungejason@fb.com>
Mon, 25 Jul 2011 23:27:34 +0000 (16:27 -0700)
Summary:
remove the size check. The conduit call will fail later if the
size is too large, and we will get better error message.

Test Plan:
run arc diff with files smaller and larger than the size
limit.

Reviewed By: epriestley
Reviewers: epriestley
CC: aran, epriestley
Differential Revision: 729

src/workflow/diff/ArcanistDiffWorkflow.php

index f5ddd206af5c5208f6fc106e9dc3020b69939c24..bf365d9f4a6eec442af55127c7ccff23568eeb7d 100644 (file)
@@ -819,12 +819,6 @@ EOTEXT
     $mime_type = trim($mime_type);
     $result['mime'] = $mime_type;
 
-    // TODO: Make this configurable.
-    $bin_limit = 1024 * 1024; // 1 MB limit
-    if (strlen($data) > $bin_limit) {
-      return $result;
-    }
-
     $bytes = strlen($data);
     echo "Uploading {$desc} '{$name}' ({$mime_type}, {$bytes} bytes)...\n";