When all revisions of a page A are merged into another page B using MergeHistory, page A will become a redirect to B, but the redirect will not be properly recorded in the pagelinks table, and so one would have to do a null edit on page A.
Instead, MergeHistory should actually delete all page links sourced from A, and then insert a single new link from A to B.