mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-21 22:32:41 +01:00
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
This commit is contained in:
parent
beaf0bb898
commit
35d73414f8
2 changed files with 0 additions and 46 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue