Manual:ReassignEdits.php

reassignEdits.php is a maintenance script located in the maintenance directory that reassigns edits from a user or IP address to another user.

Usage:
 * : username or IP address to assign edits from
 * : username to assign edits to
 * : reassign even if the target user doesn't exist
 * : don't print status information (except for errors)
 * : don't update the recent changes table
 * : print out details of what would be changed, but don't update it

Note: spaces inside a username must be replaced with underscores ( _ )

Bug: Currently (MW 1.19.1) the script is not updating the file history, that is, fields  and   from the Image table. See the discussion for a workaround.