Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14025653
D8889.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
838 B
Referenced Files
None
Subscribers
None
D8889.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8889: Put a limit on the number of files showing in herald emails
Attached
Detach File
Event Timeline
Log In to Comment