compare local with origin before running upgrade