Compare commits on branch to determine whether to upgrade.