Last modified: 2011-04-30 01:21:08 UTC
If I export a dump of my current version using dumpBackup.php --current, then make changes to that dumped file, then attempt to import the changed file back into the system using importDump.php, NONE of the changes come through, even after running rebuildall.php. I have tested this with a simple text replacement and it does not work. I have attempted to use this method because I cannot get pywikipediabot's replace.py to work with regular expressions. Thus, I cannot make mass regex-based changes to my system, which renders it effectively useless. I am running MW 1.15.2, SemanticMediaWiki 1.4.3 on PHP 5.2.5, MySQL 5.0.51a. I have also tried refreshing all the semantic data, but this is completely irrelevant, because not even a plain text edit will come through when I look at a page source after an import and a cache flush (I have caching completely disabled in any case). Am I doing something wrong or is the script broken? Thanks!
importDump.php won't reimport page revisions that are already present in the system; the initial dump you made will include the timestamps and revision id numbers, so if you didn't change them they'll still match and will be skipped. What you're trying to do should work if you drop the revision IDs and update the timestamps in the XML file before re-importing it; they'll be counted as new revisions then.