[MCR] Introduce RevisionSlotsUpdate.
authordaniel <daniel.kinzler@wikimedia.de>
Fri, 30 Mar 2018 11:29:33 +0000 (13:29 +0200)
committerGergő Tisza <tgr.huwiki@gmail.com>
Tue, 8 May 2018 13:58:51 +0000 (15:58 +0200)
commit8b0506bd8ba9d64453df121cde457d4c95f3f60e
treee4e25ac88bb063b2a98237d6e91750da67878743
parentb1b0070dc7557311cc38e7cc99e4231ac4b92940
[MCR] Introduce RevisionSlotsUpdate.

The RevisionSlotsUpdate interface represents a change to a pages slots,
as applied by an edit.

This also introduces RevisionSlots::hasSameContent and pulls up
getTouchedSlots() and getInheritedSlots() from MutableRevisionStore
to RevisionStore, in preparation of using these classes in the
refactoring of WikiPage::doEditContent and friends.

Bug: T174038
Change-Id: Idb0ef885b343a76137b640fdfc1bf36104b00895
autoload.php
includes/Storage/MutableRevisionSlots.php
includes/Storage/RevisionSlots.php
includes/Storage/RevisionSlotsUpdate.php [new file with mode: 0644]
includes/Storage/SlotRecord.php
tests/phpunit/includes/Storage/MutableRevisionSlotsTest.php
tests/phpunit/includes/Storage/RevisionSlotsTest.php
tests/phpunit/includes/Storage/RevisionSlotsUpdateTest.php [new file with mode: 0644]
tests/phpunit/includes/Storage/SlotRecordTest.php