From 35d73414f818e7f0fd0da637cbb40d12583ea357 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 22 Jan 2013 12:26:08 -0800 Subject: [PATCH] Remove legacy support for 'phd repository-launch' and 'phd repository-launch-readonly' Summary: These have been marked as deprecated since May 2012. Clean them up. Test Plan: Grepped for `repository-launch`, `phd_load_tracked_repositories`: no hits. Reviewers: btrahan, vrana Reviewed By: vrana CC: aran Maniphest Tasks: T2372 Differential Revision: https://secure.phabricator.com/D4575 --- .../daemon/phabricator_daemon_launcher.php | 40 ------------------- .../daemon/PhabricatorDaemonControl.php | 6 --- 2 files changed, 46 deletions(-) diff --git a/scripts/daemon/phabricator_daemon_launcher.php b/scripts/daemon/phabricator_daemon_launcher.php index 2d2dc1ee3d..b2e0534d67 100755 --- a/scripts/daemon/phabricator_daemon_launcher.php +++ b/scripts/daemon/phabricator_daemon_launcher.php @@ -75,35 +75,6 @@ switch ($command) { echo "Done.\n"; break; - case 'repository-launch-readonly': - case 'repository-launch-master': - if ($command == 'repository-launch-readonly') { - $daemon_args = array( - '--', - '--no-discovery', - ); - } else { - $daemon_args = array(); - } - - $need_launch = phd_load_tracked_repositories(); - if (!$need_launch) { - echo "There are no repositories with tracking enabled.\n"; - exit(1); - } - - will_launch($control); - - echo "Launching PullLocal daemon...\n"; - $control->launchDaemon( - 'PhabricatorRepositoryPullLocalDaemon', - $daemon_args); - - echo "NOTE: '{$command}' is deprecated. Consult the documentation.\n"; - - echo "Done.\n"; - break; - case 'launch': case 'debug': $is_debug = ($argv[1] == 'debug'); @@ -194,17 +165,6 @@ switch ($command) { exit($err); } -function phd_load_tracked_repositories() { - $repositories = id(new PhabricatorRepository())->loadAll(); - foreach ($repositories as $key => $repository) { - if (!$repository->isTracked()) { - unset($repositories[$key]); - } - } - - return $repositories; -} - function will_launch($control, $with_logs = true) { echo "Staging launch...\n"; $control->pingConduit(); diff --git a/src/infrastructure/daemon/PhabricatorDaemonControl.php b/src/infrastructure/daemon/PhabricatorDaemonControl.php index 71a0270442..91f28f6bcc 100644 --- a/src/infrastructure/daemon/PhabricatorDaemonControl.php +++ b/src/infrastructure/daemon/PhabricatorDaemonControl.php @@ -165,12 +165,6 @@ final class PhabricatorDaemonControl { **help** Show this help. - **repository-launch-master** - DEPRECATED. Use 'phd start'. - - **repository-launch-readonly** - DEPRECATED. Use 'phd launch pulllocal -- --no-discovery'. - EOHELP ); return 1;