Reedy has submitted this change and it was merged.

Change subject: (Bug 41574) Supply Title object to Revision if possible.
......................................................................


(Bug 41574) Supply Title object to Revision if possible.

The Revision object needs the Title to determine the default content model.
Providing the Title explicitely wherever possible avoids an extra database
lookup. Most importanlty, this fixes fatal errors that ocurr when the
database lookup fails due to slave lag or transaction state.

Change-Id: I516e82f7a893b274c513b128b8a46db491160b55
---
M includes/ChangesList.php
M includes/Import.php
M includes/Revision.php
M includes/Title.php
M includes/WikiPage.php
M includes/specials/SpecialDeletedContributions.php
M includes/specials/SpecialMergeHistory.php
M tests/phpunit/includes/WikiPageTest.php
8 files changed, 29 insertions(+), 17 deletions(-)

Approvals:
  Reedy: Verified; Looks good to me, approved


--
To view, visit https://gerrit.wikimedia.org/r/31274
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I516e82f7a893b274c513b128b8a46db491160b55
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.21wmf3
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to