Since starting to use pre-glued patches, I will repair rather than replace for preference. With old-fashioned repair kits I was never confident that my repair would hold, so would replace it and mend the old tube later at my leisure.
I'll still replace the tube if I can't immediately find the source of the flat or I don't want to go looking for it.