If an appeal be taken from an order or judgment directing the issuance of a writ of mandate commanding a party to deliver water, for irrigation purposes, such appeal shall not stay the operation of the order, judgment or writ as to the delivery of such water, but such water must until the final determination of said appeal be delivered as commanded by said writ; provided, that if any expense is necessary to be incurred by the defendant in connecting the water supply with the land to be irrigated, said defendant shall not be obliged to furnish water unless the plaintiff shall provide a bond in such sum as the court may fix, conditioned that in the event of the judgment being reversed, plaintiff will pay defendant the amount of the expense so incurred not exceeding the amount of said bond.