r11927 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r11926‎ | r11927 | r11928 >
Date:17:46, 3 December 2005
Author:hashar
Status:old
Tags:
Comment:
implement 'history' command
Modified paths:
  • /trunk/phase3/maintenance/mcc.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/mcc.php
@@ -42,6 +42,10 @@
4343 print "delete: deletes something\n";
4444 if($onlyone) { break; }
4545
 46+ case 'history':
 47+ print "history: show command line history\n";
 48+ if($onlyone) { break; }
 49+
4650 case 'dumpmcc':
4751 print "dumpmcc: shows the whole thing\n";
4852 if($onlyone) { break; }
@@ -123,6 +127,14 @@
124128 }
125129 break;
126130
 131+ case 'history':
 132+ if ( function_exists( 'readline_list_history' ) ) {
 133+ print_r(readline_list_history());
 134+ } else {
 135+ print "readline_list_history() not available\n";
 136+ }
 137+ break;
 138+
127139 case 'dumpmcc':
128140 var_dump( $mcc );
129141 break;

Status & tagging log