No one, merely by reason of having acquired an estate subject to a covenant running with the land, is liable for a breach of the covenant before he acquired the estate, or after he has parted with it, or ceased to enjoy its benefits.

SOURCE: CC § 1466.