Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
An Absol used Pursuit on a Sableye. The Sableye had a Red Card which made the Absol leave the field and an Infernape entered the battle. The Sableye then left the battle and the Infernape "mega evolved" to Mega Absol (although it still had the moves of the Infernape).
Here is the replay...