r45516 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45515‎ | r45516 | r45517 >
Date:20:34, 7 January 2009
Author:valhallasw
Status:resolved (Comments)
Tags:
Comment:
* Added batch-size parameter to optionsWithArgs
* Added --batch-size example syntax
Modified paths:
  • /trunk/phase3/maintenance/refreshLinks.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/refreshLinks.php
@@ -5,7 +5,7 @@
66 */
77
88 /** */
9 -$optionsWithArgs = array( 'm', 'e' );
 9+$optionsWithArgs = array('batch-size', 'm', 'e' );
1010
1111 require_once( "commandLine.inc" );
1212 require_once( "refreshLinks.inc" );
@@ -15,13 +15,13 @@
1616 Usage:
1717 php refreshLinks.php --help
1818 php refreshLinks.php [<start>] [-e <end>] [-m <maxlag>] [--dfn-only]
19 - [--new-only] [--redirects-only]
 19+ [--batch-size <size>] [--new-only] [--redirects-only]
2020 php refreshLinks.php [<start>] [-e <end>] [-m <maxlag>] --old-redirects-only
2121
2222 --help : This help message
2323 --dfn-only : Delete links from nonexistent articles only
2424 --batch-size <number> : The delete batch size when removing links from
25 - nonexistent articles (default 100)
 25+ nonexistent articles (defaults to 100)
2626 --new-only : Only affect articles with just a single edit
2727 --redirects-only : Only fix redirects, not all links
2828 --old-redirects-only : Only fix redirects with no redirect table entry

Follow-up revisions

RevisionCommit summaryAuthorDate
r45721Fixes for r45514 and r45516:...valhallasw23:58, 13 January 2009

Comments

#Comment by Brion VIBBER (talk | contribs)   18:44, 13 January 2009

followup to fixme r45514

#Comment by Aaron Schulz (talk | contribs)   23:17, 20 January 2009

Fixed in r45721

Status & tagging log