@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove various old things in scripts/

Summary: These have all been obsolete for a reasonable amount of time, or are no longer relevant.

Test Plan: shrug~

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D8941

-111
-5
scripts/celerity_mapper.php
··· 1 - #!/usr/bin/env php 2 - <?php 3 - 4 - echo "This script is obsolete. Run `bin/celerity map` instead.\n"; 5 - exit(1);
-35
scripts/differential/remove_empty_revisions.php
··· 1 - #!/usr/bin/env php 2 - <?php 3 - 4 - $root = dirname(dirname(dirname(__FILE__))); 5 - require_once $root.'/scripts/__init_script__.php'; 6 - 7 - $revision = new DifferentialRevision(); 8 - 9 - $empty_revisions = queryfx_all( 10 - $revision->establishConnection('r'), 11 - 'select distinct r.id from differential_revision r left join '. 12 - 'differential_diff d on r.id=d.revisionID where d.revisionID is NULL'); 13 - 14 - $empty_revisions = ipull($empty_revisions, 'id'); 15 - 16 - if (!$empty_revisions) { 17 - echo "No empty revisions found.\n"; 18 - exit(0); 19 - } 20 - 21 - echo phutil_console_wrap( 22 - "The following revision don't contain any diff:\n". 23 - implode(', ', $empty_revisions)); 24 - 25 - if (!phutil_console_confirm('Do you want to delete them?')) { 26 - echo "Cancelled.\n"; 27 - exit(1); 28 - } 29 - 30 - foreach ($empty_revisions as $revision_id) { 31 - $revision = id(new DifferentialRevision())->load($revision_id); 32 - $revision->delete(); 33 - } 34 - 35 - echo "Done.\n";
-41
scripts/profile/rescale_all_user_pics.php
··· 1 - #!/usr/bin/env php 2 - <?php 3 - 4 - $root = dirname(dirname(dirname(__FILE__))); 5 - require_once $root.'/scripts/__init_script__.php'; 6 - 7 - echo "Examining users.\n"; 8 - foreach (new LiskMigrationIterator(new PhabricatorUser()) as $user) { 9 - $file = id(new PhabricatorFile()) 10 - ->loadOneWhere('phid = %s', $user->getProfileImagePHID()); 11 - 12 - if (!$file) { 13 - echo 'No pic for user ', $user->getUserName(), "\n"; 14 - continue; 15 - } 16 - 17 - $data = $file->loadFileData(); 18 - $img = imagecreatefromstring($data); 19 - $sx = imagesx($img); 20 - $sy = imagesy($img); 21 - 22 - if ($sx != 50 || $sy != 50) { 23 - echo 'Found one! User ', $user->getUserName(), "\n"; 24 - $xformer = new PhabricatorImageTransformer(); 25 - 26 - // Resize OAuth image to a reasonable size 27 - $small_xformed = $xformer->executeProfileTransform( 28 - $file, 29 - $width = 50, 30 - $min_height = 50, 31 - $max_height = 50); 32 - 33 - $user->setProfileImagePHID($small_xformed->getPHID()); 34 - $user->save(); 35 - break; 36 - } else { 37 - echo '.'; 38 - } 39 - } 40 - echo "\n"; 41 - echo "Done.\n";
-5
scripts/repository/audit.php
··· 1 - #!/usr/bin/env php 2 - <?php 3 - 4 - echo "This script has been replaced with `bin/audit`.\n"; 5 - exit(1);
-5
scripts/repository/test_connection.php
··· 1 - #!/usr/bin/env php 2 - <?php 3 - 4 - echo "This script is obsolete. Use `bin/repository` to manage repositories.\n"; 5 - exit(1);
-15
scripts/search/reindex_maniphest.php
··· 1 - #!/usr/bin/env php 2 - <?php 3 - 4 - $root = dirname(dirname(dirname(__FILE__))); 5 - require_once $root.'/scripts/__init_script__.php'; 6 - 7 - ini_set('memory_limit', -1); 8 - $tasks = id(new ManiphestTask())->loadAll(); 9 - echo "Updating relationships for ".count($tasks)." tasks"; 10 - foreach ($tasks as $task) { 11 - ManiphestTaskProject::updateTaskProjects($task); 12 - ManiphestTaskSubscriber::updateTaskSubscribers($task); 13 - echo '.'; 14 - } 15 - echo "\nDone.\n";
-5
scripts/util/purge_cache.php
··· 1 - #!/usr/bin/env php 2 - <?php 3 - 4 - echo "This script is obsolete. Use 'bin/cache' instead.\n"; 5 - exit(1);