Add migraterepo.php script

Change-Id: I120dca5a789441a895cb95b00b4388dc09b40fd7