Move getPrevious/NextRevision logic out of Title
authorAryeh Gregor <ayg@aryeh.name>
Mon, 29 Apr 2019 14:24:58 +0000 (17:24 +0300)
committerAryeh Gregor <ayg@aryeh.name>
Sun, 5 May 2019 18:08:46 +0000 (21:08 +0300)
commit090f6daa1b388b772a724984debf7ba287a8bebe
treeb534e6d7fccb6f2989f713dcce0347abde28457d
parent908e46028aeac08379da82648e4d4a7198445c76
Move getPrevious/NextRevision logic out of Title

They belong in RevisionStore. This change removes the dependency on
Title for these methods and will assist in porting more code to
LinkTarget.

At the same time, deprecate the Title parameter to
RevisionLookup/RevisionStore getPreviousRevision/getNextRevision, and
add a $flags parameter to match the functionality of the Title versions.
Since code search turned up no callers that passed a Title outside core,
this variant is immediately hard-deprecated. The Title methods
themselves are only soft-deprecated.

Change-Id: I76bc6fd6ee1a9f35b5f29fa640824fb5da3bb78e
RELEASE-NOTES-1.34
includes/Revision.php
includes/Revision/RevisionLookup.php
includes/Revision/RevisionStore.php
includes/Title.php
tests/phpunit/includes/RevisionDbTestBase.php