RevisionStore::newRevisionFromBatch should use Title::newFromRow
authorPetr Pchelko <ppchelko@wikimedia.org>
Wed, 25 Sep 2019 20:17:38 +0000 (13:17 -0700)
committerPetr Pchelko <ppchelko@wikimedia.org>
Mon, 30 Sep 2019 18:50:42 +0000 (11:50 -0700)
commit2709495dea3b69740435e3d2cfa9944f04a0c86c
tree61157d88dd76d6687ed34e66629bf576c3311741
parent70987ee4c08d0c19468f67d7482d5bd150a0ad39
RevisionStore::newRevisionFromBatch should use Title::newFromRow

If the rows were obtained using RevisionStore::getQueryInfo with
'page' flags, the revision row already contains the fields needed
to construct the Title without an additional database query.

Change-Id: Ie36c85871a8996a5706c80d286854a9c8363905f
includes/Revision/RevisionStore.php
tests/phpunit/includes/Revision/RevisionStoreDbTestBase.php