importDump.php should have a parameter to add a prefix to the page titles of imported revisions. E.g., it might be desirable to import everything to subpages of User:Foo/Imports/ rather than to mainspace.
Description
Details
- Reference
- bz70272
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Add --rootpage parameter to importDump.php | mediawiki/core | master | +10 -0 |
Event Timeline
gerritadmin wrote:
Change 157766 had a related patch set uploaded by leucosticte:
Add --prefix parameter to importDump.php The --prefix parameter causes imported pages to have a prefix prepended, e.g. --prefix=User:Foo/
@TTO:
I'm going to try to do this using a --rootpage parameter as opposed to an arbitrary prefix parameter, as you suggested in the previous changeset which this was attempted:
This would be better implemented as --rootpage, not --prefix. It should call ->setTargetRootPage on the WikiImporter object in the importFromHandle function. Unless you really want arbitrary prefixes...
If you'd prefer a parameter which accepts an arbitrary prefix, just let me know.
Change 261031 had a related patch set uploaded (by Unicornisaurous):
Add --rootpage parameter to importDump.php