Added better selection of default branch based on the reservations that are being updated