Viscosity of water decreases markedly with increasing temperature. When the viscosity decreases, the flow resistance decreases. So for the same driving force, that is the pressure drop per unit length, the water flow rate will be higher. So the barrel with hot water will be empty first.