Steps to replicate the issue/Proof of concept:
- Create a page, and edit it multiple times.
- Export the page to an XML file using Special:Export, unticking the box labelled "Include only the current revision, not the full history".
- Delete the (now-exported) page.
- Navigate to Special:Import, and upload the previously-exported XML file (entering anything as the interwiki prefix, and leaving the "Import to original namespace" option selected).
What happens?:
The first of the imported revisions has the 'Recreated' change tag (mw-recreated) added to it.
What should have happened instead?:
The first of the imported revisions should not have been tagged with mw-recreated. Instead, the edit denoting the import (by Admin in the screenshot above) should be tagged.
Software version:
- Reproduced locally using mediawiki/core at 994c540 (with the edit from https://gerrit.wikimedia.org/r/1117255/1/includes/Storage/DerivedPageDataUpdater.php manually applied)
- Also reproduced on Patch Demo, with the updated Gerrit patchset applied (https://patchdemo.wmcloud.org/wikis/64003864a6/w/index.php?title=Test_page_to_delete_and_re-import&action=history)
Notes:
- The 'Recreated' tagging feature was added in T56145: Tag page creations of previously deleted pages.
