MCR: Deprecate and gut Revision class
authordaniel <daniel.kinzler@wikimedia.de>
Thu, 31 Aug 2017 18:41:04 +0000 (20:41 +0200)
committeraddshore <addshorewiki@gmail.com>
Thu, 21 Dec 2017 18:08:54 +0000 (18:08 +0000)
commit6af796f3e0cf3e66cd7d7e59af8445f5712d68fe
tree57477461f89925433d88373246236a436d34528b
parent13df3d2290ba2836ad14e7de664a2671952c5ddb
MCR: Deprecate and gut Revision class

This is a re-submission of I4f24e7fbb68.

As a first major step towards Multi-Content-Revisions (MCR),
this patch turns the Revision class into a legacy proxy for
the new RevisionRecord and RevisionStore classes.

Backwards compatibility is maintained for all but some
rare edge cases, like constructing a completely empty
Revision object.

For more information on MCR, see
<https://www.mediawiki.org/wiki/Requests_for_comment/Multi-Content_Revisions>.

NOTE: once this is merged, verify create/delete/restore cycle on beta,
      ideally with emulated replication lag.

Bug: T174025
Change-Id: Ia4c20a91e98df0b9b14b138eb4825c55e5200384
13 files changed:
RELEASE-NOTES-1.31
docs/hooks.txt
includes/Revision.php
includes/ServiceWiring.php
includes/actions/HistoryAction.php
includes/cache/MessageCache.php
includes/page/WikiPage.php
includes/parser/Parser.php
includes/resourceloader/ResourceLoaderWikiModule.php
includes/specials/SpecialNewpages.php
tests/phpunit/includes/MediaWikiServicesTest.php
tests/phpunit/includes/RevisionDbTestBase.php
tests/phpunit/includes/RevisionTest.php