Pass created revision to TitleMoveComplete hook
authorEric Evans <eevans@wikimedia.org>
Wed, 16 Dec 2015 22:15:20 +0000 (16:15 -0600)
committerEric Evans <eevans@wikimedia.org>
Thu, 17 Dec 2015 00:35:56 +0000 (18:35 -0600)
commit9cc2f62bf5ae5654c09104b66bb57bfac0093321
tree105f2ccd61eed1efa8f94a8b3fbaaad285b535df
parent9d674be62c07356a7110cbc2353e3ff8dad4bbc8
Pass created revision to TitleMoveComplete hook

The EventBus extension needs to forward the created (null) revision ID as
part of the page move event.  Looking this value up when the hook fires is
problematic, because without a connection to the master DB the query might
very well return nothing (if it races in before the entry is replicated to
the slave).

This changeset passes the newly created Revision on to the hook so that it
doesn't need to be queried separately.

Bug: T116786
Change-Id: I1b48e2904fc8d99f2cde604f274f79a2b47d7fc2
docs/hooks.txt
includes/MovePage.php