dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fix EnhancedChangesList::getDiffHistLinks null exception"
[lhc/web/wiklou.git]
/
maintenance
/
dumpBackup.php
diff --git
a/maintenance/dumpBackup.php
b/maintenance/dumpBackup.php
index
1904325
..
9bf1222
100644
(file)
--- a/
maintenance/dumpBackup.php
+++ b/
maintenance/dumpBackup.php
@@
-50,6
+50,8
@@
TEXT
$this->addOption( 'stable', 'Dump stable versions of pages' );
$this->addOption( 'revrange', 'Dump range of revisions specified by revstart and ' .
'revend parameters' );
$this->addOption( 'stable', 'Dump stable versions of pages' );
$this->addOption( 'revrange', 'Dump range of revisions specified by revstart and ' .
'revend parameters' );
+ $this->addOption( 'orderrevs', 'Dump revisions in ascending revision order ' .
+ '(implies dump of a range of pages)' );
$this->addOption( 'pagelist',
'Dump only pages included in the file', false, true );
// Options
$this->addOption( 'pagelist',
'Dump only pages included in the file', false, true );
// Options
@@
-102,7
+104,9
@@
TEXT
$this->fatalError( "Unable to open file {$filename}\n" );
}
$pages = array_map( 'trim', $pages );
$this->fatalError( "Unable to open file {$filename}\n" );
}
$pages = array_map( 'trim', $pages );
- $this->pages = array_filter( $pages, create_function( '$x', 'return $x !== "";' ) );
+ $this->pages = array_filter( $pages, function ( $x ) {
+ return $x !== '';
+ } );
}
if ( $this->hasOption( 'start' ) ) {
}
if ( $this->hasOption( 'start' ) ) {
@@
-125,6
+129,7
@@
TEXT
$this->skipFooter = $this->hasOption( 'skip-footer' );
$this->dumpUploads = $this->hasOption( 'uploads' );
$this->dumpUploadFileContents = $this->hasOption( 'include-files' );
$this->skipFooter = $this->hasOption( 'skip-footer' );
$this->dumpUploads = $this->hasOption( 'uploads' );
$this->dumpUploadFileContents = $this->hasOption( 'include-files' );
+ $this->orderRevs = $this->hasOption( 'orderrevs' );
}
}
}
}