Drain from a low point as much as necessary so no water left in leaking pipe, probably an air vent around the section your working on so once pulling air in you'll be ready to go.
Then unsweat the leaking joint clean all up then your choice but ideally resoldered.
I would say not ideal if you...