Section 29. All the provisions of this chapter relative to liens for the erection, alteration, repair or removal of a building or structure or for furnishing material therefor, attaching under the provisions of section two or four, shall apply, so far as apt, to liens attaching under section twenty-seven or twenty-eight.