When a right of occupancy has been transferred by sale, gift or usufructuary mortgage to a person other than the landlord that person shall, in respect of the land inwhichthe right subsists, have the same rights, and be subject to the same liabilities. as the tenant to whom before thetransfer the right belonged, hadand was subject to. ...