Page MenuHomePhabricator

D8889.diff
No OneTemporary

D8889.diff

diff --git a/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php b/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php
--- a/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php
+++ b/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php
@@ -138,8 +138,14 @@
? PhabricatorEnv::getProductionURI('/D'.$revision->getID())
: 'No revision.';
+ $limit = 1000;
$files = $adapter->loadAffectedPaths();
sort($files);
+ if (count($files) > $limit) {
+ array_splice($files, $limit);
+ $files[] = '(This commit affected more than 1000 files. '.
+ 'Only 1000 are shown here and additional ones are truncated.)';
+ }
$files = implode("\n", $files);
$xscript_id = $xscript->getID();

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 7:23 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6717705
Default Alt Text
D8889.diff (838 B)

Event Timeline