When a lien is on an undivided interest or estate of any of the parties, such lien, if a partition be made, shall thenceforth be a charge only on the share assigned to such party, but such share must be first charged with its just proportion of the costs of the partition in preference to such lien.
En. Sec. 509, p. 143, Bannack Stat.; re-en. Sec. 281, p. 193, L. 1867; re-en. Sec. 330, p. 100, Cod. Stat. 1871; re-en. Sec. 381, p. 144, L. 1877; re-en. Sec. 381, 1st Div. Rev. Stat. 1879; re-en. Sec. 394, 1st Div. Comp. Stat. 1887; re-en. Sec. 1364, C. Civ. Proc. 1895; re-en. Sec. 6907, Rev. C. 1907; re-en. Sec. 9540, R.C.M. 1921; Cal. C. Civ. Proc. Sec. 769; re-en. Sec. 9540, R.C.M. 1935; R.C.M. 1947, 93-6325.