Section 29. A person holding land under a partition made under this chapter shall, in case of an eviction, be entitled to compensation for improvements made thereon, as provided in chapter two hundred and thirty-seven.