Such commissioner shall have authority to enter upon said ditch; open, close, and set headgates; and do whatever else is necessary to apportion and distribute the waters of said ditch to the respective parties according to their respective rights.
§ 85-5-404, MCA