Pinhole Leaks in Copper Pipes: Repair or Replace?

I recently bought a home and am experiencing a problem with the copper waterlines/pipes corroding from the inside out.  So far the corrosion appears to be limited to just the hot water lines, but I’m afraid to take a look…

pinhole leaks