I think Mercedes bought the Brawn outfit and rebranded it Mercedes. They are still supplying engines to McLaren.
 
As he said, Mercedes wanted a full on factory team, so they bought out Brawn GP. They are still backing McLaren for another 6 years though to give them time to find finances to support being at the top end of the grid