Does a broken masterpiece item retain its masterpiece quality if enough repair cantrips are thrown at it?

I am trying to repair a long sword of masterpiece that a friend has in the game; He had a broken condition.

Does a broken masterpiece item retain its masterpiece quality if enough repair cantrips are thrown at it?