If the application is contested the court shall make findings, conclusions, and judgment as in any civil action tried to the court. If there is no contest the court shall by its judgment establish the instrument or record or the parts thereof in accordance with the application and the proof adduced and the instrument or record as so established shall be incorporated in the judgment as a part thereof or as an exhibit thereto, and thereafter the same shall be of the same legal force and effect as the original instrument or record.

Source: SL 1893, ch 142, § 1; RCCivP 1903, § 879; SL 1903, ch 193; RC 1919, §§ 3047, 3048; SDC 1939 & Supp 1960, § 37.1106.