From b2a7aafbed9b2f9070c15b8671c95ed582d36735 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 25 Jul 2012 21:31:06 +0200 Subject: [PATCH] Improve documentation of maintenance scripts. Change-Id: I93e80edcfc3dc2d5630f7514808cafc22daf39f7 --- maintenance/jsparse.php | 8 +++++++- maintenance/lag.php | 5 +++++ maintenance/mctest.php | 11 +++++++++-- maintenance/mergeMessageFileList.php | 7 +++++++ maintenance/migrateUserGroup.php | 6 ++++++ maintenance/minify.php | 5 +++++ maintenance/moveBatch.php | 8 +++++++- maintenance/namespaceDupes.php | 9 ++++++++- maintenance/nextJobDB.php | 6 ++++++ maintenance/nukeNS.php | 8 +++++++- maintenance/nukePage.php | 6 ++++++ maintenance/orphans.php | 15 +++++++++++---- 12 files changed, 84 insertions(+), 10 deletions(-) diff --git a/maintenance/jsparse.php b/maintenance/jsparse.php index 2c38ed9d13..c0a4dbaa32 100644 --- a/maintenance/jsparse.php +++ b/maintenance/jsparse.php @@ -1,6 +1,6 @@ + * Copyright © 2005-2007 Brion Vibber * http://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify @@ -20,11 +20,18 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * + * @file * @ingroup Maintenance */ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script that checks for articles to fix after + * adding/deleting namespaces. + * + * @ingroup Maintenance + */ class NamespaceConflictChecker extends Maintenance { /** diff --git a/maintenance/nextJobDB.php b/maintenance/nextJobDB.php index ac4e723b5d..bee4065602 100644 --- a/maintenance/nextJobDB.php +++ b/maintenance/nextJobDB.php @@ -17,12 +17,18 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * + * @file * @todo Make this work on PostgreSQL and maybe other database servers * @ingroup Maintenance */ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script that picks a database that has pending jobs. + * + * @ingroup Maintenance + */ class nextJobDB extends Maintenance { public function __construct() { parent::__construct(); diff --git a/maintenance/nukeNS.php b/maintenance/nukeNS.php index 5d4f374c9c..1defe1b2f5 100644 --- a/maintenance/nukeNS.php +++ b/maintenance/nukeNS.php @@ -1,5 +1,4 @@ */ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script that erases a page record from the database. + * + * @ingroup Maintenance + */ class NukePage extends Maintenance { public function __construct() { parent::__construct(); diff --git a/maintenance/orphans.php b/maintenance/orphans.php index faaadd3776..1ab3b9962a 100644 --- a/maintenance/orphans.php +++ b/maintenance/orphans.php @@ -1,11 +1,11 @@ + * Copyright © 2005 Brion Vibber * http://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify @@ -23,17 +23,24 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * + * @file * @author * @ingroup Maintenance */ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script that looks for 'orphan' revisions hooked to pages which + * don't exist and 'childless' pages with no revisions. + * + * @ingroup Maintenance + */ class Orphans extends Maintenance { public function __construct() { parent::__construct(); $this->mDescription = "Look for 'orphan' revisions hooked to pages which don't exist\n" . - "And 'childless' pages with no revisions\n" . + "and 'childless' pages with no revisions\n" . "Then, kill the poor widows and orphans\n" . "Man this is depressing"; $this->addOption( 'fix', 'Actually fix broken entries' ); -- 2.20.1