From a28e00cb4b900dfbeca078369654854364dccb47 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 8 Jul 2012 22:47:27 +0200 Subject: [PATCH] Improve documentation of maintenance scripts. Change-Id: I2433d23544e808e16f28805f93183b1af2409c94 --- maintenance/cleanupPreferences.php | 25 ++++++++++++++++++++++++- maintenance/deleteArchivedRevisions.inc | 9 +++++++-- maintenance/deleteBatch.php | 6 ++++++ maintenance/deleteDefaultMessages.php | 7 +++++++ maintenance/deleteImageMemcached.php | 8 +++++++- maintenance/deleteOldRevisions.php | 7 ++++++- maintenance/deleteOrphanedRevisions.php | 11 ++++++++--- maintenance/deleteRevision.php | 7 +++++++ maintenance/deleteSelfExternals.php | 14 ++++++++------ maintenance/dumpIterator.php | 13 ++++++++++++- maintenance/dumpLinks.php | 12 +++++++++--- maintenance/dumpSisterSites.php | 8 +++++++- 12 files changed, 108 insertions(+), 19 deletions(-) diff --git a/maintenance/cleanupPreferences.php b/maintenance/cleanupPreferences.php index 4a52d106f9..706f87fb92 100755 --- a/maintenance/cleanupPreferences.php +++ b/maintenance/cleanupPreferences.php @@ -1,12 +1,35 @@ + * @see [[bugzilla:30976]] * @ingroup Maintenance */ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script that removes hidden preferences from the database. + * + * @ingroup Maintenance + */ class CleanupPreferences extends Maintenance { public function execute() { global $wgHiddenPrefs; diff --git a/maintenance/deleteArchivedRevisions.inc b/maintenance/deleteArchivedRevisions.inc index 197ffab581..414d41adb6 100644 --- a/maintenance/deleteArchivedRevisions.inc +++ b/maintenance/deleteArchivedRevisions.inc @@ -1,7 +1,6 @@ */ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script that deletes old (non-current) revisions from the database. + * + * @ingroup Maintenance + */ class DeleteOldRevisions extends Maintenance { public function __construct() { parent::__construct(); diff --git a/maintenance/deleteOrphanedRevisions.php b/maintenance/deleteOrphanedRevisions.php index 9fe5794302..13b9c91bf9 100644 --- a/maintenance/deleteOrphanedRevisions.php +++ b/maintenance/deleteOrphanedRevisions.php @@ -1,8 +1,7 @@ * @todo More efficient cleanup of text records @@ -26,6 +26,11 @@ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script that deletes revisions which refer to a nonexisting page. + * + * @ingroup Maintenance + */ class DeleteOrphanedRevisions extends Maintenance { public function __construct() { parent::__construct(); diff --git a/maintenance/deleteRevision.php b/maintenance/deleteRevision.php index 5e8ecaacc1..fe3b5151a8 100644 --- a/maintenance/deleteRevision.php +++ b/maintenance/deleteRevision.php @@ -17,11 +17,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 deletes one or more revisions by moving them + * to the archive table. + * + * @ingroup Maintenance + */ class DeleteRevision extends Maintenance { public function __construct() { diff --git a/maintenance/deleteSelfExternals.php b/maintenance/deleteSelfExternals.php index 447d3bda8f..162dcb4f73 100644 --- a/maintenance/deleteSelfExternals.php +++ b/maintenance/deleteSelfExternals.php @@ -1,10 +1,6 @@ - * http://www.mediawiki.org/ - * * Quick demo hack to generate a plaintext link dump, * per the proposed wiki link database standard: * http://www.usemod.com/cgi-bin/mb.pl?LinkDatabase @@ -11,6 +8,9 @@ * Does not include interwiki or URL links. * Dumps ASCII text to stdout; command-line. * + * Copyright © 2005 Brion Vibber + * http://www.mediawiki.org/ + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -26,11 +26,17 @@ * 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 generates a plaintext link dump. + * + * @ingroup Maintenance + */ class DumpLinks extends Maintenance { public function __construct() { parent::__construct(); diff --git a/maintenance/dumpSisterSites.php b/maintenance/dumpSisterSites.php index f5abcd1b81..5dbb5e2360 100644 --- a/maintenance/dumpSisterSites.php +++ b/maintenance/dumpSisterSites.php @@ -3,7 +3,7 @@ * Quickie page name dump script for SisterSites usage. * http://www.eekim.com/cgi-bin/wiki.pl?SisterSites * - * Copyright (C) 2006 Brion Vibber + * Copyright © 2006 Brion Vibber * http://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify @@ -21,11 +21,17 @@ * 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 generates a page name dump for SisterSites usage. + * + * @ingroup Maintenance + */ class DumpSisterSites extends Maintenance { public function __construct() { parent::__construct(); -- 2.20.1