Manual:$wgRevertedTagMaxDepth

Details
Maximum depth (revision count) of reverts that will have their reverted edits marked with the mw-reverted change tag.

Reverts deeper than that will not have any edits marked as reverted at all.

Large values can lead to lots of revisions being marked as "reverted", which may appear confusing to users.

Setting this to 0 will disable the reverted tag entirely.