The script can be re-run (in some cases at least!) to fix up incomplete migrations...
authorReedy <reedy@wikimedia.org>
Tue, 17 Apr 2012 15:48:17 +0000 (16:48 +0100)
committerReedy <reedy@wikimedia.org>
Tue, 24 Apr 2012 15:44:00 +0000 (16:44 +0100)
commitfdcac385a203a8073626f41792f32d7dfe603aa3
tree8d5629de7519df24fa767ccabf0041f1a45f5f1c
parent7f7649566cc9d2a149f5fffe305ed96a5f07bfa4
The script can be re-run (in some cases at least!) to fix up incomplete migrations (see bug 34981 for enwiki)

There's little point reading a row from the db if rev_parent_id != null, as the parent id has already been populated.

Added this as an extra condition, filtering on this after limiting to a relatively small batch should be ok (rev_parent_id isn't indexed)

Change-Id: I85b5813ab214869350c95f3bee58daca3e92eba0
maintenance/populateParentId.php