Deductions & credits

I'm still struggling with this sadly. Can anyone validate that adjusting the basis up by the cost of repairs is the proper thing to do in this situation. Everything I've read makes this point as clear as mud.