calculating the last built changelist and the newest one