Neither party to an obligation can be compelled specifically to perform it unless the other party thereto has performed or is compelled specifically to perform everything to which the former is entitled under the same obligation, either completely or nearly so, with full compensation for any want of entire performance.